MockerBlazorTestBase<(Of <(<'T>)>)> Members

The MockerBlazorTestBase<(Of <(<'T>)>)> type exposes the following members.

Constructors


  Name Description
Protected method MockerBlazorTestBase<(Of <(<'T>)>)>()()()()
Initializes a new instance of the TestContext class.
Protected method MockerBlazorTestBase<(Of <(<'T>)>)>(Boolean, Nullable<(Of <<'(InvocationMatcher>)>>), Boolean)
Initializes a new instance of the MockerBlazorTestBase<(Of <(<'T>)>)> class.

Methods


  Name Description
Public method ClickButton(IElement, Func<(Of <<'(Boolean>)>>), Nullable<(Of <<'(TimeSpan>)>>))
Clicks the button element.
Public method ClickButton(String, Func<(Of <<'(Boolean>)>>), Nullable<(Of <<'(TimeSpan>)>>))
Clicks the button element.
Public method ClickButton(Func<(Of <<'(IElement, Boolean>)>>), Func<(Of <<'(Boolean>)>>), Nullable<(Of <<'(TimeSpan>)>>))
Clicks the button element.
Public method ClickButton<(Of <<'(TComponent>)>>)(String, Func<(Of <<'(Boolean>)>>), IRenderedComponent<(Of <<'(TComponent>)>>), Nullable<(Of <<'(TimeSpan>)>>))
Clicks the button element.
Public method ClickButton<(Of <<'(TComponent>)>>)(String, Func<(Of <<'(Boolean>)>>), Nullable<(Of <<'(TimeSpan>)>>))
Clicks the button element.
Public method ClickDropdownItem<(Of <<'(TComponent>)>>)(IRenderedComponent<(Of <<'(TComponent>)>>), String, String, Func<(Of <<'(Boolean>)>>))
Clicks the dropdown item.
Public method ClickDropdownItem<(Of <<'(TComponent>)>>)(String, Func<(Of <<'(Boolean>)>>), String)
Protected method Dispose
Disposes of the test context resources, in particular it disposes the Services()()()() service provider. Any async services registered with the service provider will disposed first, but their disposal will not be awaited..
Public method FindAllByTag
Finds all by tag.
Public method FindById
Finds the by identifier.
Protected method GetAllComponents()()()()
Gets all components, regardless of render tree.
Protected method GetAllComponents<(Of <<'(TComponent>)>>)()()()()
Gets all components from the renderer and their state.
Public method GetComponent<(Of <<'(TComponent>)>>)()()()()
Gets the component.
Public method GetComponent<(Of <<'(TComponent>)>>)(Func<(Of <<'(IRenderedComponent<(Of <<'(TComponent>)>>), Boolean>)>>))
Gets the component.
Public method GetComponent<(Of <<'(TComponent>)>>)(Func<(Of <<'(IElement, Boolean>)>>))
Gets the component.
Public method GetComponents<(Of <<'(TOfType>)>>)(Nullable<(Of <<'(Func<(Of <<'(IRenderedComponent<(Of <<'(TOfType>)>>), Boolean>)>>)>)>>))
Public method GetComponents<(Of <<'(TOfType>)>>)(Nullable<(Of <<'(Func<(Of <<'(IElement, Boolean>)>>)>)>>))
Public method GetInjections(Type, Type)
Gets the injections.
Public method GetInjections(Type)
Gets the injections.
Public method GetInjections<(Of <<'(TComponent>)>>)()()()()
Gets the injections.
Public method InjectComponent(Type)
Injects the component.
Public method InjectComponent(Type, Type)
Injects the component.
Public method InjectComponent<(Of <<'(TComponent>)>>)()()()()
Injects the component.
Public method InjectComponent<(Of <<'(TComponent, TInjectAttribute>)>>)()()()()
Injects the component.
Public method IsExists
Determines whether the specified CSS selector is exists.
Protected method OnAuthorizedClaimsChanged
Handles the [E:AuthorizedClaimsChanged] event.
Protected method OnAuthorizedPoliciesChanged
Handles the [E:AuthorizedPoliciesChanged] event.
Protected method OnAuthorizedRolesChanged
Handles the [E:AuthorizedRolesChanged] event.
Public method RenderComponent(Boolean)
Renders the component. If the component is already rendered, it will act like a stateChanged.
Public method RenderComponent(Action<(Of <<'(ComponentParameterCollectionBuilder<(Of <<'(T>)>>)>)>>), Boolean)
Renders the component. If the component is already rendered, it will act like a stateChanged.
Public method SetAutoComplete
Sets the automatic complete.
Public method SetElementCheck<(Of <<'(TComponent>)>>)
Sets the element check.
Public method SetElementSwitch<(Of <<'(TComponent>)>>)
Sets the element switch.
Public method SetElementText(IElement, String, Func<(Of <<'(Boolean>)>>), Nullable<(Of <<'(TimeSpan>)>>))
Sets the element text.
Public method SetElementText(String, String, Func<(Of <<'(Boolean>)>>), Nullable<(Of <<'(TimeSpan>)>>), Nullable<(Of <<'(IRenderedFragment>)>>))
Sets the element text.
Protected method Setup
Setup and create component.
Protected method SetupAuthorization
Setups the authorization.
Public method SetupJsInterop
Adds the utilities.
Protected method SetupMocks
Setups the mocks.
Protected method SetupServices
Setups the services.
Public method WaitDelay
Waits the delay time. Use only when absolutely needed. Prefer use of WaitForState, WaitForExists, or WaitForNotExists.
Public method WaitForExists
Waits for exists.
Public method WaitForNotExists
Waits for not exists.
Public method WaitForState
Waits for state.

Properties


  Name Description
Protected property AuthContext
Gets the authentication context.
Protected property AuthorizedClaims
Gets the authorized claims.
Protected property AuthorizedPolicies
Gets the authorized policies.
Protected property AuthorizedRoles
Gets the authorized roles.
Protected property AuthUsername
Gets or sets the authentication username.
Protected property Component
Gets or sets the component under test.
Protected property ConfigureServices
Gets the configure services.
Protected property Instance
Gets the instance.
Protected property Mocks
Gets the mock controller.
Protected property NavigationManager
Gets the navigation manager.
Protected property RenderParameters
Gets the list of parameters used when rendering. This is used to setup a component before the test constructor runs.
Protected property SetupComponent
Gets or sets the setup component action. This is used to setup a component before the test constructor runs.
Protected property TokenSource
Gets the token source.