CI • 23 • Add code coverage badge #23
GitHub Actions / Test Report
succeeded
Jun 27, 2024 in 0s
106 passed, 0 failed and 0 skipped
Report | Passed | Failed | Skipped | Time |
---|---|---|---|---|
test/Cabazure.Client.IntegrationTests/TestResults/test-results.trx | 53✅ | 3s | ||
test/Cabazure.Client.Runtime.Tests/TestResults/test-results.trx | 25✅ | 3s | ||
test/Cabazure.Client.Tests/TestResults/test-results.trx | 28✅ | 7s |
✅ test/Cabazure.Client.IntegrationTests/TestResults/test-results.trx
53 tests were completed in 3s with 53 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
Cabazure.Client.IntegrationTests.ConfigureClientTests | 4✅ | 45ms | ||
Cabazure.Client.IntegrationTests.DeleteEndpointTests | 11✅ | 228ms | ||
Cabazure.Client.IntegrationTests.GetEndpointTests | 13✅ | 155ms | ||
Cabazure.Client.IntegrationTests.ListEndpointTests | 12✅ | 259ms | ||
Cabazure.Client.IntegrationTests.PostEndpointTests | 13✅ | 209ms |
✅ Cabazure.Client.IntegrationTests.ConfigureClientTests
✅ Should_Register_ClientSerializer(services: [···], jsonOptions: Action`1 { Method = Void Invoke(System.Text.Json.JsonSerializerOptions), Target = Substitute.Action<JsonSerializerOptions>|037f8838 }, builder: Action`1 { Method = Void Invoke(Microsoft.Extensions.DependencyInjection.IHttpClientBuilder), Target = Substitute.Action<IHttpClientBuilder>|01583ac7 })
✅ Should_Register_HttpClient(services: [···], jsonOptions: Action`1 { Method = Void Invoke(System.Text.Json.JsonSerializerOptions), Target = Substitute.Action<JsonSerializerOptions>|00857ce3 }, builder: Action`1 { Method = Void Invoke(Microsoft.Extensions.DependencyInjection.IHttpClientBuilder), Target = Substitute.Action<IHttpClientBuilder>|00527765 })
✅ Should_Register_JsonOptions(services: [···], jsonOptions: Action`1 { Method = Void Invoke(System.Text.Json.JsonSerializerOptions), Target = Substitute.Action<JsonSerializerOptions>|01f28b85 }, builder: Action`1 { Method = Void Invoke(Microsoft.Extensions.DependencyInjection.IHttpClientBuilder), Target = Substitute.Action<IHttpClientBuilder>|01885363 })
✅ Should_Register_MessageRequestFactory(services: [···], jsonOptions: Action`1 { Method = Void Invoke(System.Text.Json.JsonSerializerOptions), Target = Substitute.Action<JsonSerializerOptions>|014a3f49 }, builder: Action`1 { Method = Void Invoke(Microsoft.Extensions.DependencyInjection.IHttpClientBuilder), Target = Substitute.Action<IHttpClientBuilder>|01a70367 })
✅ Cabazure.Client.IntegrationTests.DeleteEndpointTests
✅ Should_Add_PathParameter(builder: Substitute.IMessageRequestBuilder|036b897a, sut: DeleteEndpoint { }, id: "id71cf2e22-e5d7-4ada-b647-15558725137e", cancellationToken: System.Threading.CancellationToken)
✅ Should_Configure_SuccessResponse(builder: Substitute.IMessageResponseBuilder|00a4e32c, sut: DeleteEndpoint { }, item: "itemb3c59223-edef-4190-b0f4-358bc3cec4b5", cancellationToken: System.Threading.CancellationToken)
✅ Should_Create_Builder_From_Response(requestFactory: Substitute.IMessageRequestFactory|000483f1, response: StatusCode: 100, ReasonPhrase: 'ReasonPhrase40505b76-356c-4bfb-98c6-bd7dd29e8797', Version: 0.0, Content: Castle.Proxies.HttpContentProxy, Headers:
{
}, sut: DeleteEndpoint { })
✅ Should_Create_HttpClient(factory: Substitute.IHttpClientFactory|02da5f2c, sut: DeleteEndpoint { })
✅ Should_Create_Request(requestFactory: Substitute.IMessageRequestFactory|0188d437, sut: DeleteEndpoint { })
✅ Should_Create_Result(builder: Substitute.IMessageResponseBuilder|01aa3400, sut: DeleteEndpoint { }, item: "item1c4da151-3534-4406-9cc4-a5382d9187d9", cancellationToken: System.Threading.CancellationToken)
✅ Should_Get_Registered_By_AddCabazureClient(services: [···], jsonOptions: Action`1 { Method = Void Invoke(System.Text.Json.JsonSerializerOptions), Target = Substitute.Action<JsonSerializerOptions>|0304c796 }, builder: Action`1 { Method = Void Invoke(Microsoft.Extensions.DependencyInjection.IHttpClientBuilder), Target = Substitute.Action<IHttpClientBuilder>|005ce9da })
✅ Should_Implement_Interface(sut: DeleteEndpoint { })
✅ Should_Return_Result(builder: Substitute.IMessageResponseBuilder|033de00b, sut: DeleteEndpoint { }, response: EndpointResponse { IsSuccess = False, StatusCode = SwitchingProtocols, Content = Contente484d0cc-42d1-4e65-9aa3-2d3eee3a24e8, ContentObject = System.Object, Headers = System.Collections.ObjectModel.ReadOnlyDictionary`2[System.String,System.Collections.Generic.IEnumerable`1[System.String]], IsOk = False, IsNotFound = False, IsTimeout = False, IsBadRequest = False }, item: "item5cc04197-70d5-4c23-ac4e-9182e8ee8cb9", cancellationToken: System.Threading.CancellationToken)
✅ Should_Send_Request(client: Substitute.HttpClient|03b7342a, request: Method: methodee7f4c5b-bb0f-4046-9a16-011ebd1247f9, RequestUri: 'http://9c61ee78-d309-40d1-b3ec-7b40c80855d5/', Version: 0.0, Content: Castle.Proxies.HttpContentProxy, Headers:
{
}, sut: DeleteEndpoint { })
✅ Should_Use_Correct_HttpMethod(builder: Substitute.IMessageRequestBuilder|03fdf75c, sut: DeleteEndpoint { }, id: "idfd187d5e-de38-4da3-9af7-8e7fa4cea76b", cancellationToken: System.Threading.CancellationToken)
✅ Cabazure.Client.IntegrationTests.GetEndpointTests
✅ Should_Add_ClientRequestOptions_To_Builder(builder: Substitute.IMessageRequestBuilder|02bc226b, sut: GetEndpoint { }, id: "id44a4f863-75d9-4cb3-8a89-d02f28982ece", options: ClientRequestOptions { CorrelationId = "CorrelationId75061587-37fc-4fc0-93a3-27ba1542010c", OnBehalfOf = "OnBehalfOf339dcca9-515a-44e9-b909-5518793abbaa", Timeout = 00:00:00.0000132 }, cancellationToken: System.Threading.CancellationToken)
✅ Should_Add_PathParameter(builder: Substitute.IMessageRequestBuilder|00c32b37, sut: GetEndpoint { }, id: "id94b5d58a-8300-4000-b182-4dc24614fc5d", options: ClientRequestOptions { CorrelationId = "CorrelationId6a148f57-45d3-41da-8e17-735abfa38914", OnBehalfOf = "OnBehalfOf24820a8b-7e33-4f97-8137-d22daaebe880", Timeout = 00:00:00.0000135 }, cancellationToken: System.Threading.CancellationToken)
✅ Should_Configure_SuccessResponse(builder: Substitute.IMessageResponseBuilder|03daa378, sut: GetEndpoint { }, item: "item17a2ab38-6c0f-4b89-a340-b1c46e8d0a63", options: ClientRequestOptions { CorrelationId = "CorrelationIde2b277b5-0300-4ae7-903a-2c0f9cc888fa", OnBehalfOf = "OnBehalfOf647dc355-0c1a-4c83-929e-60e6ad9dd0b4", Timeout = 00:00:00.0000203 }, cancellationToken: System.Threading.CancellationToken)
✅ Should_Create_Builder_From_Response(requestFactory: Substitute.IMessageRequestFactory|010afcf6, response: StatusCode: 100, ReasonPhrase: 'ReasonPhrasec54385df-5ea5-4079-af1c-204943cb34d3', Version: 0.0, Content: Castle.Proxies.HttpContentProxy, Headers:
{
}, sut: GetEndpoint { })
✅ Should_Create_HttpClient(factory: Substitute.IHttpClientFactory|03915566, sut: GetEndpoint { })
✅ Should_Create_Request(requestFactory: Substitute.IMessageRequestFactory|004e1625, sut: GetEndpoint { })
✅ Should_Create_Result(builder: Substitute.IMessageResponseBuilder|037ca958, sut: GetEndpoint { }, item: "itema5155bda-391d-4b70-8685-c59d4f2bcb26", options: ClientRequestOptions { CorrelationId = "CorrelationIda0fc26e7-c098-424f-aa43-8048eacacda4", OnBehalfOf = "OnBehalfOf4aac696d-d96a-47fd-b76c-f58b0acb6ea4", Timeout = 00:00:00.0000136 }, cancellationToken: System.Threading.CancellationToken)
✅ Should_Get_Registered_By_AddCabazureClient(services: [···], jsonOptions: Action`1 { Method = Void Invoke(System.Text.Json.JsonSerializerOptions), Target = Substitute.Action<JsonSerializerOptions>|02b3ffa1 }, builder: Action`1 { Method = Void Invoke(Microsoft.Extensions.DependencyInjection.IHttpClientBuilder), Target = Substitute.Action<IHttpClientBuilder>|0023e3b0 })
✅ Should_Implement_Interface(sut: GetEndpoint { })
✅ Should_Return_Result(builder: Substitute.IMessageResponseBuilder|007eef93, sut: GetEndpoint { }, response: EndpointResponse { IsSuccess = True, StatusCode = Processing, Content = Contentfbdceba1-0fac-457c-a8bf-59e33f1393c2, ContentObject = System.Object, Headers = System.Collections.ObjectModel.ReadOnlyDictionary`2[System.String,System.Collections.Generic.IEnumerable`1[System.String]], IsOk = False, IsNotFound = False, IsTimeout = False, IsBadRequest = False, OkContent = OkContent1671ec3f-a780-4e9e-90de-d9edbbd0a15b }, item: "item8cd7e8ec-ff3c-489c-84db-34b50a65fc94", options: ClientRequestOptions { CorrelationId = "CorrelationIdcfeda5c1-c379-4482-9606-9958993963eb", OnBehalfOf = "OnBehalfOfb082e293-a904-46c3-a9ec-10281f3be389", Timeout = 00:00:00.0000174 }, cancellationToken: System.Threading.CancellationToken)
✅ Should_Send_Request(client: Substitute.HttpClient|00f2d810, request: Method: methodf0d732eb-73d3-4c9d-ae07-8ce8b444a0fb, RequestUri: 'http://b5a3fd2f-cc8e-4b93-bf86-0f87e40d6d59/', Version: 0.0, Content: Castle.Proxies.HttpContentProxy, Headers:
{
}, sut: GetEndpoint { })
✅ Should_Set_Timeout_On_HttpClient(client: Substitute.HttpClient|02b6afb0, sut: GetEndpoint { }, item: "itembe5c290d-c020-4c58-94f4-6c55adf11861", options: ClientRequestOptions { CorrelationId = "CorrelationId08aba70e-0340-472e-8ca1-6b4969d7c984", OnBehalfOf = "OnBehalfOfa1b12c7b-e67d-4344-b637-dee7ed329262", Timeout = 00:00:00.0000072 }, timeout: 00:00:00.0000102, cancellationToken: System.Threading.CancellationToken)
✅ Should_Use_Correct_HttpMethod(builder: Substitute.IMessageRequestBuilder|022e0f6b, sut: GetEndpoint { }, id: "idb1e7bcd0-b4c2-4552-829a-d931fce1e2ca", options: ClientRequestOptions { CorrelationId = "CorrelationId72486180-5ea7-47e8-8571-1008b8390395", OnBehalfOf = "OnBehalfOf2120b3e8-1d76-4347-901c-f514ecacad62", Timeout = 00:00:00.0000200 }, cancellationToken: System.Threading.CancellationToken)
✅ Cabazure.Client.IntegrationTests.ListEndpointTests
✅ Should_Add_ClientRequestOptions_To_Builder(builder: Substitute.IMessageRequestBuilder|03598c68, sut: ListEndpoint { }, search: "search3f272d5c-65e3-4f05-9a19-a0670fd0da2c", options: ClientPaginationOptions { ContinuationToken = "ContinuationToken85578e23-25f8-4cf9-b547-cf1900b7d"···, CorrelationId = "CorrelationIdfee03a13-3f51-4e05-970c-314a8186e73e", MaxItemCount = 242, OnBehalfOf = "OnBehalfOffde171d9-000a-4c0f-bb32-36d0fffa09be", Timeout = 00:00:00.0000130 }, cancellationToken: System.Threading.CancellationToken)
✅ Should_Add_QueryParameter(builder: Substitute.IMessageRequestBuilder|024ba9c6, sut: ListEndpoint { }, search: "searchb0a57e59-c223-4ce3-baec-9a3534b1a468", options: ClientPaginationOptions { ContinuationToken = "ContinuationToken6ce80d8b-8572-49c7-897c-c829e532d"···, CorrelationId = "CorrelationIdd2e4e232-11d0-443e-a490-9b48b3dc79fe", MaxItemCount = 43, OnBehalfOf = "OnBehalfOf8aac6c9d-eb0f-418b-9ac0-ff46edc32230", Timeout = 00:00:00.0000193 }, cancellationToken: System.Threading.CancellationToken)
✅ Should_Configure_SuccessResponse(builder: Substitute.IMessageResponseBuilder|02993b41, sut: ListEndpoint { }, item: "itemc2a43627-a127-43df-924d-48c76477b794", options: ClientPaginationOptions { ContinuationToken = "ContinuationToken310384bb-5d90-4ba5-8cc4-04514ca8e"···, CorrelationId = "CorrelationId0cc90e90-05b8-476a-a2b3-0da29d24e39a", MaxItemCount = 83, OnBehalfOf = "OnBehalfOf22e2fea7-b7f9-4237-a88e-e180013b6b1e", Timeout = 00:00:00.0000125 }, cancellationToken: System.Threading.CancellationToken)
✅ Should_Create_Builder_From_Response(requestFactory: Substitute.IMessageRequestFactory|031f5ef9, response: StatusCode: 100, ReasonPhrase: 'ReasonPhrase0fa0e790-38a3-4b16-a7b4-a1862b31cf25', Version: 0.0, Content: Castle.Proxies.HttpContentProxy, Headers:
{
}, sut: ListEndpoint { })
✅ Should_Create_HttpClient(factory: Substitute.IHttpClientFactory|036d7a1f, sut: ListEndpoint { })
✅ Should_Create_Request(requestFactory: Substitute.IMessageRequestFactory|00ef37a6, sut: ListEndpoint { })
✅ Should_Create_Result(builder: Substitute.IMessageResponseBuilder|021fb026, sut: ListEndpoint { }, item: "item2c014374-7804-4d54-b7a6-dcf426258ff3", options: ClientPaginationOptions { ContinuationToken = "ContinuationTokenfb6b98a5-4647-45f3-94f2-6a386be5b"···, CorrelationId = "CorrelationId0dc0c83d-1cf9-4e49-8177-787f274d2526", MaxItemCount = 200, OnBehalfOf = "OnBehalfOfb6f73d8f-5ba2-4694-86ec-4750e619da36", Timeout = 00:00:00.0000204 }, cancellationToken: System.Threading.CancellationToken)
✅ Should_Get_Registered_By_AddCabazureClient(services: [···], jsonOptions: Action`1 { Method = Void Invoke(System.Text.Json.JsonSerializerOptions), Target = Substitute.Action<JsonSerializerOptions>|016a88ef }, builder: Action`1 { Method = Void Invoke(Microsoft.Extensions.DependencyInjection.IHttpClientBuilder), Target = Substitute.Action<IHttpClientBuilder>|005f777e })
✅ Should_Implement_Interface(sut: ListEndpoint { })
✅ Should_Return_Result(builder: Substitute.IMessageResponseBuilder|01b81727, sut: ListEndpoint { }, response: PagedResponse { IsSuccess = True, StatusCode = Processing, Content = Content3b6d7ab2-5904-4f17-b89d-8c9fe1d7c68f, ContentObject = System.Object, Headers = System.Collections.ObjectModel.ReadOnlyDictionary`2[System.String,System.Collections.Generic.IEnumerable`1[System.String]], IsOk = False, IsNotFound = False, IsTimeout = False, IsBadRequest = False, OkContent = System.String[], ContinuationToken = ContinuationToken20d1723d-0a64-4ad0-bbe7-4974c149fe2c }, item: "itemf2f4ab73-7dff-4528-905a-ec98a02a59ef", options: ClientPaginationOptions { ContinuationToken = "ContinuationTokena14393f5-05ac-438a-a295-f7aacabc6"···, CorrelationId = "CorrelationId2fcdde2c-5a2a-4e5f-8b73-bfc5c8addd4f", MaxItemCount = 247, OnBehalfOf = "OnBehalfOf65071eae-a360-4a39-aafd-3c28731b5783", Timeout = 00:00:00.0000156 }, cancellationToken: System.Threading.CancellationToken)
✅ Should_Send_Request(client: Substitute.HttpClient|00bb9e9b, request: Method: method01188da3-4e4a-40ec-a8fb-90c8b00bf1f5, RequestUri: 'http://23ba54b8-24e7-4170-8776-d1acd66071cb/', Version: 0.0, Content: Castle.Proxies.HttpContentProxy, Headers:
{
}, sut: ListEndpoint { })
✅ Should_Set_Timeout_On_HttpClient(factory: Substitute.IHttpClientFactory|00e0ace2, client: Substitute.HttpClient|0299670e, sut: ListEndpoint { }, item: "item9959d9a0-5011-4e1c-8948-126fc95fd839", options: ClientPaginationOptions { ContinuationToken = "ContinuationToken9dfdbb53-cd1a-4bea-b92f-26e00ab2f"···, CorrelationId = "CorrelationId46d8b3f2-6b8b-44fd-a1fa-d51181884e56", MaxItemCount = 1, OnBehalfOf = "OnBehalfOf61196837-01f5-4d87-80f2-ef186cb3664c", Timeout = 00:00:00.0000030 }, timeout: 00:00:00.0000024, cancellationToken: System.Threading.CancellationToken)
✅ Cabazure.Client.IntegrationTests.PostEndpointTests
✅ Should_Add_Body(builder: Substitute.IMessageRequestBuilder|03ddc3ae, sut: PostEndpoint { }, item: "item473bdd73-3244-4db3-8575-a68db8aaa18b", options: ClientRequestOptions { CorrelationId = "CorrelationId439ba889-f83d-4b48-970f-5bbd769d86a1", OnBehalfOf = "OnBehalfOf7a63b422-d6e2-4920-8fd3-7232c4dc924b", Timeout = 00:00:00.0000017 }, cancellationToken: System.Threading.CancellationToken)
✅ Should_Add_ClientRequestOptions_To_Builder(builder: Substitute.IMessageRequestBuilder|03c6395c, sut: PostEndpoint { }, item: "item399a4dc3-83b1-4b73-902f-ce330d6accce", options: ClientRequestOptions { CorrelationId = "CorrelationIdaaec8fe6-aaac-4217-a563-4fdd34a68df1", OnBehalfOf = "OnBehalfOf60d2d23e-8fc7-4737-8cf2-af8e09df3807", Timeout = 00:00:00.0000238 }, cancellationToken: System.Threading.CancellationToken)
✅ Should_Configure_SuccessResponse(builder: Substitute.IMessageResponseBuilder|02b685e6, sut: PostEndpoint { }, item: "item8ed9b93f-76c1-4fc2-b5d4-36ec7dec6a0a", options: ClientRequestOptions { CorrelationId = "CorrelationIdb4f86b34-90e0-46ac-8450-376aa28acb21", OnBehalfOf = "OnBehalfOfff48b641-9aba-474b-8550-aeac5b03c468", Timeout = 00:00:00.0000146 }, cancellationToken: System.Threading.CancellationToken)
✅ Should_Create_Builder_From_Response(requestFactory: Substitute.IMessageRequestFactory|03c05e11, response: StatusCode: 100, ReasonPhrase: 'ReasonPhrase2c32e431-c924-4674-9ac7-98aa83cee1ee', Version: 0.0, Content: Castle.Proxies.HttpContentProxy, Headers:
{
}, sut: PostEndpoint { })
✅ Should_Create_HttpClient(factory: Substitute.IHttpClientFactory|031f46db, sut: PostEndpoint { })
✅ Should_Create_Request(requestFactory: Substitute.IMessageRequestFactory|00e56b6d, sut: PostEndpoint { })
✅ Should_Create_Result(builder: Substitute.IMessageResponseBuilder|00badaf2, sut: PostEndpoint { }, item: "item2edd3ac6-8361-4e0f-96a6-fa2835a94e3b", options: ClientRequestOptions { CorrelationId = "CorrelationId96ac3742-5555-4930-b075-182914065692", OnBehalfOf = "OnBehalfOf41cb83d7-97e0-4ed0-9990-e564c731dfe2", Timeout = 00:00:00.0000105 }, cancellationToken: System.Threading.CancellationToken)
✅ Should_Get_Registered_By_AddCabazureClient(services: [···], jsonOptions: Action`1 { Method = Void Invoke(System.Text.Json.JsonSerializerOptions), Target = Substitute.Action<JsonSerializerOptions>|03d7f9ca }, builder: Action`1 { Method = Void Invoke(Microsoft.Extensions.DependencyInjection.IHttpClientBuilder), Target = Substitute.Action<IHttpClientBuilder>|03560902 })
✅ Should_Implement_Interface(sut: PostEndpoint { })
✅ Should_Return_Result(builder: Substitute.IMessageResponseBuilder|035df60f, sut: PostEndpoint { }, response: EndpointResponse { IsSuccess = True, StatusCode = Processing, Content = Contentd01a6626-2603-4e7f-bc94-72cbfd4641c2, ContentObject = System.Object, Headers = System.Collections.ObjectModel.ReadOnlyDictionary`2[System.String,System.Collections.Generic.IEnumerable`1[System.String]], IsOk = False, IsNotFound = False, IsTimeout = False, IsBadRequest = False, OkContent = OkContentbd872c87-d50d-4cc7-8b23-be8f653bcedf }, item: "item1f97fee0-d60c-4898-8be2-38a662b3cfd6", options: ClientRequestOptions { CorrelationId = "CorrelationId20507007-feec-41df-92bc-a0eb54f014c8", OnBehalfOf = "OnBehalfOfa0e6487a-b1cb-4793-94a4-6005d4805540", Timeout = 00:00:00.0000251 }, cancellationToken: System.Threading.CancellationToken)
✅ Should_Send_Request(client: Substitute.HttpClient|00089309, request: Method: method544f2d8b-5bcd-48db-a06d-455fe2412831, RequestUri: 'http://8b46194c-0a91-4c1f-a9cf-96afd8b74b50/', Version: 0.0, Content: Castle.Proxies.HttpContentProxy, Headers:
{
}, sut: PostEndpoint { })
✅ Should_Set_Timeout_On_HttpClient(factory: Substitute.IHttpClientFactory|03023308, client: Substitute.HttpClient|03b225cd, sut: PostEndpoint { }, item: "item3e9e9334-d47a-4f8f-a127-41d620b5bd79", options: ClientRequestOptions { CorrelationId = "CorrelationId96cc20ac-f947-4467-bc40-29bf2ee84e36", OnBehalfOf = "OnBehalfOf4470205d-fb91-4eaf-bfb7-05b98251d16d", Timeout = 00:00:00.0000155 }, timeout: 00:00:00.0000188, cancellationToken: System.Threading.CancellationToken)
✅ Should_Use_Correct_HttpMethod(builder: Substitute.IMessageRequestBuilder|0096fd8c, sut: PostEndpoint { }, id: "idb6f9bbc5-d63d-4d7c-b2d8-3ec61790dbcd", options: ClientRequestOptions { CorrelationId = "CorrelationIdee7b2397-bbc0-478d-a84b-ef918646ad2a", OnBehalfOf = "OnBehalfOf69006812-0ba5-4af6-b509-f402c3418e0e", Timeout = 00:00:00.0000069 }, cancellationToken: System.Threading.CancellationToken)
✅ test/Cabazure.Client.Runtime.Tests/TestResults/test-results.trx
25 tests were completed in 3s with 25 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
Cabazure.Client.Runtime.Tests.Authentication.AzureAuthenticationHandlerTests | 1✅ | 7ms | ||
Cabazure.Client.Runtime.Tests.Authentication.BearerTokenProviderTests | 4✅ | 125ms | ||
Cabazure.Client.Runtime.Tests.Builder.MessageRequestBuilderTest | 12✅ | 163ms | ||
Cabazure.Client.Runtime.Tests.Builder.MessageRequestFactoryTests | 3✅ | 29ms | ||
Cabazure.Client.Runtime.Tests.Builder.MessageResponseBuilderTests | 5✅ | 159ms |
✅ Cabazure.Client.Runtime.Tests.Authentication.AzureAuthenticationHandlerTests
✅ Should_Get_Token_On_Send(tokenProvider: Substitute.IBearerTokenProvider|02ea02cc, sut: AzureAuthenticationHandler { InnerHandler = Substitute.HttpMessageHandler|000ae2cf }, handler: Substitute.HttpMessageHandler|0371c386, authenticationHeader: schemec167103b-a8ac-4464-b908-4dc7f0840cfa, request: Method: methodde673b71-4145-44d3-b008-e125e9f8236f, RequestUri: 'http://7b05a4ea-c0d6-4a21-b7c7-f53d11482644/', Version: 0.0, Content: Castle.Proxies.HttpContentProxy, Headers:
{
}, response: StatusCode: 100, ReasonPhrase: 'ReasonPhraseb5ff4a5d-ed5c-4a36-8bb5-db552c48426a', Version: 0.0, Content: Castle.Proxies.HttpContentProxy, Headers:
{
}, cancellationToken: System.Threading.CancellationToken)
✅ Cabazure.Client.Runtime.Tests.Authentication.BearerTokenProviderTests
✅ Should_Renew_Expired_Token(credential: Substitute.TokenCredential|0284bbec, dateTimeProvider: Substitute.IDateTimeProvider|03d99665, context: Azure.Core.TokenRequestContext, sut: BearerTokenProvider { }, timestamp: 2025-01-19T00:35:07.8586107+00:00, cancellationToken: System.Threading.CancellationToken)
✅ Should_Return_Token_From_TokenCredential(credential: Substitute.TokenCredential|03086ca1, dateTimeProvider: Substitute.IDateTimeProvider|0166fa07, context: Azure.Core.TokenRequestContext, sut: BearerTokenProvider { }, timestamp: 2024-07-03T19:10:50.4798597+00:00, accessToken: Azure.Core.AccessToken, cancellationToken: System.Threading.CancellationToken)
✅ Should_Use_Bearer_AuthorizationToken(credential: Substitute.TokenCredential|017a48c4, dateTimeProvider: Substitute.IDateTimeProvider|03debff1, context: Azure.Core.TokenRequestContext, sut: BearerTokenProvider { }, timestamp: 2025-10-07T18:10:31.2850921+00:00, cancellationToken: System.Threading.CancellationToken)
✅ Should_Use_Cached_Token_From_TokenCredential(credential: Substitute.TokenCredential|010be2d5, dateTimeProvider: Substitute.IDateTimeProvider|0063aebd, context: Azure.Core.TokenRequestContext, sut: BearerTokenProvider { }, timestamp: 2025-06-01T17:28:46.3073392+00:00, cancellationToken: System.Threading.CancellationToken)
✅ Cabazure.Client.Runtime.Tests.Builder.MessageRequestBuilderTest
✅ Should_Ignore_Header_When_Null_Or_Empty_Or_Whitespace(sut: MessageRequestBuilder { }, headerName: "headerNamefe92662d-c8de-46ef-8666-381805dd561d")
✅ Should_Include_BodyAsync(template: "template8819d574-6b64-4dbb-b884-b67efd1235ad", serializer: Substitute.IClientSerializer|03683eac, clientName: "clientName6f385790-f80a-4076-8b46-13cba6511a79", content: "contentb3c2fc64-e09d-4596-91b8-1c47fabb2ce1")
✅ Should_Include_Continuation_Header(sut: MessageRequestBuilder { }, options: ClientPaginationOptions { ContinuationToken = "ContinuationToken8d6b296e-3e14-435a-aea5-197af8a59"···, CorrelationId = "CorrelationIdb6a58bda-a0bd-4019-8982-62d5a49b719d", MaxItemCount = 247, OnBehalfOf = "OnBehalfOfa8801c6b-1bda-4515-8de2-ec7b696b366e", Timeout = 00:00:00.0000015 })
✅ Should_Include_CorrelationId_Header(sut: MessageRequestBuilder { }, options: ClientRequestOptions { CorrelationId = "CorrelationIdff1e417f-7182-4a6b-a456-aed8d555bb66", OnBehalfOf = "OnBehalfOfff8203f3-6e8e-47c0-97d1-4924a185960f", Timeout = 00:00:00.0000172 })
✅ Should_Include_Header(sut: MessageRequestBuilder { }, headerName: "headerNamec11c9dde-99ee-4993-a85d-4296704274d7", headerValue: "headerValuef782f775-bf63-4f24-9ad3-90c588871a58")
✅ Should_Include_MacItemCount_Header(sut: MessageRequestBuilder { }, options: ClientPaginationOptions { ContinuationToken = "ContinuationToken9368d21c-13df-4662-8892-8dcf99671"···, CorrelationId = "CorrelationId6f05d4ce-07b1-4a72-ae89-ad4c9b3d51ea", MaxItemCount = 55, OnBehalfOf = "OnBehalfOf8c23f538-6ff1-4078-9ecc-5c45fe7e0901", Timeout = 00:00:00.0000175 })
✅ Should_Include_OnBehalfOf_Header(sut: MessageRequestBuilder { }, options: ClientRequestOptions { CorrelationId = "CorrelationId38fd9f78-f59e-406d-b1d5-ff6fb93802b8", OnBehalfOf = "OnBehalfOf1f59ae77-b693-40dd-b83f-3c45bdb0379d", Timeout = 00:00:00.0000014 })
✅ Should_Replace_Path_Parameters(template: "/api/chargepoints/{chargepointId}/connectors/{conn"···, parameterValue: "parameterValueadf88b72-8f7f-4566-b30f-65c4a6270dab", serializer: Substitute.IClientSerializer|0156ba37, clientName: "clientName17263d53-e9e7-4347-8a73-6e6478a532d4")
✅ Should_Replace_Query_Parameters(template: "/api/chargepoints/1232/reset", parameterValue: "parameterValuea8bae8c9-88d1-4bc0-bc0d-602fcd55c020", serializer: Substitute.IClientSerializer|00ad8b02, clientName: "clientName95bc2e09-4877-4d4a-9cf5-c3189cf9e9ff")
✅ Should_Use_ApplicationJson_As_MediaType(sut: MessageRequestBuilder { })
✅ Should_Use_HttpMethod(method: methodde0e59b4-2795-48b2-91bd-c7b2f96467ef, sut: MessageRequestBuilder { })
✅ Should_Use_HttpVersion_20(method: method28db856f-e5f2-4059-ab79-bc31ab5f3e61, sut: MessageRequestBuilder { })
✅ Cabazure.Client.Runtime.Tests.Builder.MessageRequestFactoryTests
✅ Should_Provide_MessageRequestBuilder_FromTemplate(template: "template2529e58c-00b6-4731-a100-b88f9f0418df", clientName: "clientNameded9a73c-37fc-4a8e-9309-6c210875c074", sut: MessageRequestFactory { })
✅ Should_Provide_MessageResponseBuilder_From_Null_Response(clientName: "clientName377f71be-ddf0-44a2-906b-ea2cd60c8be5", sut: MessageRequestFactory { })
✅ Should_Provide_MessageResponseBuilder_FromResponse(response: StatusCode: 100, ReasonPhrase: 'ReasonPhrasee9d7aea4-bdee-4c29-8f86-d5696fe825ad', Version: 0.0, Content: Castle.Proxies.HttpContentProxy, Headers:
{
}, clientName: "clientNamec607bec0-d260-43e1-95c3-4d5416a16ea1", sut: MessageRequestFactory { })
✅ Cabazure.Client.Runtime.Tests.Builder.MessageResponseBuilderTests
✅ IsSuccess_Should_Respect_Configured_ErrorResponse(response: StatusCode: 100, ReasonPhrase: 'ReasonPhrasefa443a4e-9461-434f-b2f1-3b8e73fe3f11', Version: 0.0, Content: Castle.Proxies.HttpContentProxy, Headers:
{
}, sut: MessageResponseBuilder { }, cancellationToken: System.Threading.CancellationToken)
✅ IsSuccess_Should_Respect_Configured_SuccessResponse(response: StatusCode: 100, ReasonPhrase: 'ReasonPhrase7ca17baf-235b-44d6-a598-e44cee120daa', Version: 0.0, Content: Castle.Proxies.HttpContentProxy, Headers:
{
}, sut: MessageResponseBuilder { }, cancellationToken: System.Threading.CancellationToken)
✅ Should_Deserialize_Configured_ErrorResponseCode(response: StatusCode: 100, ReasonPhrase: 'ReasonPhraseb1ab3f9d-c498-4220-95d4-333a1a44689c', Version: 0.0, Content: Castle.Proxies.HttpContentProxy, Headers:
{
}, serializer: Substitute.IClientSerializer|037ca958, sut: MessageResponseBuilder { }, expected: 2025-12-24T21:39:20.0040289+00:00, cancellationToken: System.Threading.CancellationToken)
✅ Should_Deserialize_Configured_SuccessResponseCode(response: StatusCode: 100, ReasonPhrase: 'ReasonPhrase17918698-4b1d-40c3-8495-5afd5081346f', Version: 0.0, Content: Castle.Proxies.HttpContentProxy, Headers:
{
}, serializer: Substitute.IClientSerializer|022e0f6b, sut: MessageResponseBuilder { }, expected: 2025-08-30T08:31:59.0049784+00:00, cancellationToken: System.Threading.CancellationToken)
✅ Should_Return_Response_Headers(response: StatusCode: 100, ReasonPhrase: 'ReasonPhrase50184e95-54c1-4700-bfee-2255db7020c0', Version: 0.0, Content: Castle.Proxies.HttpContentProxy, Headers:
{
}, sut: MessageResponseBuilder { }, cancellationToken: System.Threading.CancellationToken)
✅ test/Cabazure.Client.Tests/TestResults/test-results.trx
28 tests were completed in 7s with 28 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
Cabazure.Client.Tests.ClientEndpointGeneratorTests | 19✅ | 4s | ||
Cabazure.Client.Tests.ClientInitializationGeneratorTests | 1✅ | 2s | ||
Cabazure.Client.Tests.GeneratorDiagnosticsTests | 8✅ | 2s |
✅ Cabazure.Client.Tests.ClientEndpointGeneratorTests
✅ CanGenerate_CancellationToken_Parameter
✅ CanGenerate_ClientName_From_Constant
✅ CanGenerate_ClientName_From_NameOf
✅ CanGenerate_ClientPaginationOptions_Parameter
✅ CanGenerate_ClientRequestOptions_Parameter
✅ CanGenerate_DeleteEndpoint
✅ CanGenerate_FileScopedNamespace
✅ CanGenerate_GetEndpoint
✅ CanGenerate_HeaderParameter
✅ CanGenerate_NamedPathParameter
✅ CanGenerate_NamedQueryParameter
✅ CanGenerate_Namespace
✅ CanGenerate_NestedType
✅ CanGenerate_Pagination_Endpoint
✅ CanGenerate_PathParameter
✅ CanGenerate_PostEndpoint
✅ CanGenerate_PutEndpoint
✅ CanGenerate_QueryParameter
✅ CanGenerate_Usings
✅ Cabazure.Client.Tests.ClientInitializationGeneratorTests
✅ CanGenerate_GetEndpoint
✅ Cabazure.Client.Tests.GeneratorDiagnosticsTests
✅ ReportDiagnostics_When_ClientNameIsEmpty
✅ ReportDiagnostics_When_ClientNameIsEmpty_UsingAConstant
✅ ReportDiagnostics_When_EndpointHasNoMethods
✅ ReportDiagnostics_When_MissingEndpointRoute
✅ ReportDiagnostics_When_PathParameterNotInRouteTemplate
✅ ReportDiagnostics_When_RouteTemplateHasUnmappedPathParameter
✅ ReportDiagnostics_When_UnsupportedEndpointParameterType
✅ ReportDiagnostics_When_UnsupportedEndpointReturnType
Loading