Class MicrosoftAuthenticationTests
- Namespace
- ProjectTemplate.Web.Tests
- Assembly
- ProjectTemplate.Web.Tests.dll
Provides tests for Microsoft external authentication provider registration.
public sealed class MicrosoftAuthenticationTests
- Inheritance
-
MicrosoftAuthenticationTests
- Inherited Members
Methods
DisabledMicrosoftProvider_DoesNotRegisterMicrosoftScheme()
Verifies that the Microsoft authentication provider is not registered when disabled.
[Fact("/home/runner/work/NetCoreApplicationTemplate/NetCoreApplicationTemplate/tests/ProjectTemplate.Web.Tests/MicrosoftAuthenticationTests.cs", 21)]
public Task DisabledMicrosoftProvider_DoesNotRegisterMicrosoftScheme()
Returns
- Task
A task that represents the asynchronous test operation.
EnabledMicrosoftProvider_ConfiguresMicrosoftHandlerOptions()
Verifies that Microsoft provider options are applied to the registered Microsoft handler.
[Fact("/home/runner/work/NetCoreApplicationTemplate/NetCoreApplicationTemplate/tests/ProjectTemplate.Web.Tests/MicrosoftAuthenticationTests.cs", 61)]
public void EnabledMicrosoftProvider_ConfiguresMicrosoftHandlerOptions()
EnabledMicrosoftProvider_RegistersMicrosoftScheme()
Verifies that the Microsoft authentication provider is registered when enabled.
[Fact("/home/runner/work/NetCoreApplicationTemplate/NetCoreApplicationTemplate/tests/ProjectTemplate.Web.Tests/MicrosoftAuthenticationTests.cs", 43)]
public Task EnabledMicrosoftProvider_RegistersMicrosoftScheme()
Returns
- Task
A task that represents the asynchronous test operation.
MicrosoftProviderScopes_AreBoundFromConfiguration()
Verifies that Microsoft provider scopes are bound from application authentication configuration.
[Fact("/home/runner/work/NetCoreApplicationTemplate/NetCoreApplicationTemplate/tests/ProjectTemplate.Web.Tests/MicrosoftAuthenticationTests.cs", 81)]
public void MicrosoftProviderScopes_AreBoundFromConfiguration()