FastMoq Quick Reference
Use this page when you already know the type name and want to jump straight to the API page.
Most-used starting points
- Mocker
- MockerTestBase<TComponent>
- ScenarioBuilder<T>
- MockingProviderRegistry
- MockerBlazorTestBase<T>
Core test entry points
Arrange and creation
Provider APIs
If you are writing your own provider instead of using the bundled ones, start with IMockingProvider, then IMockingProviderCapabilities, then MockingProviderRegistry.
Logging and verification
Extension helpers
- MockerCreationExtensions
- TestClassExtensions
- MockerHttpExtensions
- MockerBooleanExtensions
- ObjectExtensions
Database helpers
- DbContextMockerExtensions
- DbContextHandle<TContext>
- DbContextHandleOptions<TContext>
- DbContextTestMode
Common models and helper types
Blazor and web
Fast ways to find a type
- Use the search box in the top-right and search for the exact type name, such as
MockerorMockerTestBase. - Use the site navigation to jump into Core namespace when you know the type is in the main FastMoq namespace.
- Use API overview when you want package-level entry points before drilling into a type.
Typical navigation paths
- Starting a new service test: MockerTestBase<TComponent> then Mocker
- Configuring provider behavior: MockingProviderRegistry then IMockingProvider
- Writing a custom provider: IMockingProvider then IMockingProviderCapabilities then MockingProviderRegistry
- Verifying interactions: TimesSpec then TestClassExtensions
- Working with Blazor components: MockerBlazorTestBase<T> then IMockerBlazorTestHelpers<T>