Namespace Bunit.TestDoubles
Classes
- BunitAuthenticationStateProvider
Represents a implementation of AuthenticationStateProvider for testing purposes that allows user to test components that use authentication and authorization.
- BunitAuthorizationContext
Root authorization service that manages different authentication/authorization state in the system.
- BunitAuthorizationPolicyProvider
Test class that provides an implementation of IAuthorizationPolicyProvider that assists user in testing components that use authentication and authorization.
- BunitAuthorizationService
Test class that provides an implementation of IAuthorizationService that assists user in testing components by allowing them to set the authorization expected authorization response.
- BunitNavigationManager
Represents a NavigationManager that captures calls to NavigateTo(string, bool) for testing purposes.
- BunitPersistentComponentState
Represents a PersistentComponentState, that can be used to the real PersistentComponentState in the Blazor runtime.
- BunitSignOutSessionStateManager
Represents bUnit's own SignOutSessionStateManager that captures calls to SetSignOutState() that will help later to assert if the user was logged out
- BunitWebAssemblyHostEnvironment
Represents bUnit's own IWebAssemblyHostEnvironment that makes the Environment and BaseAddress settable.
- CapturedParameterView<TComponent>
Represents a view of parameters captured by a ComponentDoubleBase<TComponent>.
- ComponentDoubleBase<TComponent>
Represents a component that doubles as another component in the render tree.
- MissingBunitAuthorizationException
Exception used to indicate that the bunit authorization services are required by a test but provided in BunitContext.Services.
- MissingMockHttpClientException
Exception use to indicate that a mock HttpClient is required by a test but was not provided.
- MissingMockStringLocalizationException
Exception use to indicate that a IStringLocalizer is required by a test but was not provided.
- NavigationHistory
Represents a navigation to a Uri with a set of specific navigation Options.
- ParameterNotFoundException
Represents an exception which is thrown when the Get<TValue>(Expression<Func<TComponent, TValue>>) is used to get a parameter that was not passed to the doubled component.
- Stub<TComponent>
Represents a test double stub of a component of type
TComponent.
- TestPolicyRequirement
Test requirement that supports the minimum requirement - just a policy name.
Enums
- AuthorizationState
Enumeration that represents the user's authorization state.
- NavigationState
Describes the possible enumerations when a navigation gets intercepted.