Refactored the use of ClaimsLite and ClaimsRecord into a single type … #119
GitHub Actions / Test Report - Duende.Bff.Blazor.Client.UnitTests
succeeded
Feb 4, 2025 in 1s
26 passed, 0 failed and 0 skipped
✅ bff/test/Duende.Bff.Blazor.Client.UnitTests/TestResults/Tests.trx
26 tests were completed in 2s with 26 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
Duende.Bff.Blazor.Client.UnitTests.AntiforgeryHandlerTests | 1✅ | 111ms | ||
Duende.Bff.Blazor.Client.UnitTests.BffClientAuthenticationStateProviderTests | 4✅ | 185ms | ||
Duende.Bff.Blazor.Client.UnitTests.GetUserServiceTests | 4✅ | 106ms | ||
Duende.Bff.Blazor.Client.UnitTests.ServiceCollectionExtensionsTests | 17✅ | 160ms |
✅ Duende.Bff.Blazor.Client.UnitTests.AntiforgeryHandlerTests
✅ Adds_expected_header
✅ Duende.Bff.Blazor.Client.UnitTests.BffClientAuthenticationStateProviderTests
✅ after_configured_delay_UserService_is_called_again_and_state_notification_is_called
✅ timer_stops_when_user_logs_out
✅ when_UserService_gives_anonymous_user_GetAuthState_returns_anonymous
✅ when_UserService_returns_persisted_user_GetAuthState_returns_that_user
✅ Duende.Bff.Blazor.Client.UnitTests.GetUserServiceTests
✅ FetchUser_maps_claims_into_ClaimsPrincipal
✅ FetchUser_returns_anonymous_when_http_request_fails
✅ GetUser_fetches_user_if_no_persisted_user
✅ GetUser_returns_persisted_user_if_refresh_not_required
✅ Duende.Bff.Blazor.Client.UnitTests.ServiceCollectionExtensionsTests
✅ AddBffBlazorClient_can_set_options_with_callback
✅ AddRemoteApiHttpClient_configures_HttpClient_base_address(configuredRemoteAddress: "https://example.com", configuredRemotePath: "custom/route/to/apis", expectedBaseAddress: "https://example.com/custom/route/to/apis/")
✅ AddRemoteApiHttpClient_configures_HttpClient_base_address(configuredRemoteAddress: "https://example.com", configuredRemotePath: null, expectedBaseAddress: "https://example.com/remote-apis/")
✅ AddRemoteApiHttpClient_configures_HttpClient_base_address(configuredRemoteAddress: "https://example.com/", configuredRemotePath: "remote-apis", expectedBaseAddress: "https://example.com/remote-apis/")
✅ AddRemoteApiHttpClient_configures_HttpClient_base_address(configuredRemoteAddress: "https://example.com/", configuredRemotePath: null, expectedBaseAddress: "https://example.com/remote-apis/")
✅ AddRemoteApiHttpClient_configures_HttpClient_base_address(configuredRemoteAddress: "https://example.com/with/base/path", configuredRemotePath: "/custom/route/to/apis", expectedBaseAddress: "https://example.com/with/base/path/custom/route/to"···)
✅ AddRemoteApiHttpClient_configures_HttpClient_base_address(configuredRemoteAddress: "https://example.com/with/base/path", configuredRemotePath: "custom/route/to/apis", expectedBaseAddress: "https://example.com/with/base/path/custom/route/to"···)
✅ AddRemoteApiHttpClient_configures_HttpClient_base_address(configuredRemoteAddress: "https://example.com/with/base/path", configuredRemotePath: null, expectedBaseAddress: "https://example.com/with/base/path/remote-apis/")
✅ AddRemoteApiHttpClient_configures_HttpClient_base_address(configuredRemoteAddress: "https://example.com/with/base/path/", configuredRemotePath: "/custom/route/to/apis", expectedBaseAddress: "https://example.com/with/base/path/custom/route/to"···)
✅ AddRemoteApiHttpClient_configures_HttpClient_base_address(configuredRemoteAddress: "https://example.com/with/base/path/", configuredRemotePath: "custom/route/to/apis", expectedBaseAddress: "https://example.com/with/base/path/custom/route/to"···)
✅ When_base_address_option_is_default_AddBffBlazorClient_configures_HttpClient_base_address_from_host_env
✅ When_base_address_option_is_default_AddRemoteApiHttpClient_configures_HttpClient_base_address_from_host_env
✅ When_base_address_option_is_default_AddRemoteApiHttpClient_configures_HttpClient_base_address_from_host_env_and_config_callback_is_respected
✅ When_base_address_option_is_default_AddRemoteApiHttpClient_for_typed_clients_configures_HttpClient_base_address_from_host_env
✅ When_base_address_option_is_default_AddRemoteApiHttpClient_for_typed_clients_configures_HttpClient_base_address_from_host_env_and_config_callback_is_respected
✅ When_base_address_option_is_set_AddBffBlazorClient_configures_HttpClient_base_address(configuredRemoteAddress: "https://example.com", expectedBaseAddress: "https://example.com/")
✅ When_base_address_option_is_set_AddBffBlazorClient_configures_HttpClient_base_address(configuredRemoteAddress: "https://example.com/", expectedBaseAddress: "https://example.com/")
Loading