FastMoq Documentation
This site combines generated API reference with real-world example documentation for the published FastMoq 4.1.0 line and the current v4 codebase.
New to FastMoq
- Quick reference for common types
- Executable testing examples
- Provider selection guide
- Getting started guide
- Testing guide
Upgrading to v4
The release delta from
3.0.0is centered on provider-first architecture, the expanded package split, first-party Azure SDK and Azure Functions helpers, analyzer-by-default aggregate installs, explicit policy surfaces, provider-neutral verification, and the scenario builder.Start with the release summary, then use the breaking-change and migration pages to decide how much compatibility behavior your test suites still need.
Looking for an API
- Quick reference for common types
- Core namespace reference
- Provider APIs
- Extension methods
- Blazor and web APIs
- Models and helper types
- API overview page
Real-world examples
Use the example pages first when you want to understand how FastMoq is applied in tests, then drop into API reference pages when you need the exact shape of a type or member.
Blazor and web testing
Quick type lookup
- Quick reference for common types
- Mocker
- MockerTestBase<TComponent>
- ScenarioBuilder<T>
- MockingProviderRegistry
How to find a type fast
- Use the top-right search box for exact names such as
Mocker,MockerTestBase, orScenarioBuilder. - Use Quick reference for common types when you want one-click links to the most-used APIs.
- Use the left-side site navigation when you want to browse by topic instead of by type name.
Package map
FastMoq
The aggregate package that pulls together the core runtime, shared Azure SDK helpers, Azure Functions helpers, database helpers, web support, provider integrations, and analyzer assets.
FastMoq.Azure
Shared Azure SDK helpers for pageable builders, credential setup, Azure-oriented configuration or service-provider flows, and common client registration.
FastMoq.AzureFunctions
Azure Functions worker and HTTP-trigger helpers, including FunctionContext.InstanceServices, concrete HttpRequestData and HttpResponseData builders, and body readers.
FastMoq.Abstractions
Provider contracts shared by the core runtime and provider-specific packages.
FastMoq.Core
Core mocking, auto-construction, instance resolution, and provider-neutral verification support.
FastMoq.Database
EF and DbContext-oriented helpers that stay exposed through the main FastMoq namespace.
- DbContextMockerExtensions
- DbContextHandle<TContext>
- DbContextHandleOptions<TContext>
- DbContextTestMode
FastMoq.Web
Blazor and web-oriented testing helpers.
FastMoq.Provider.Moq
Moq compatibility provider package for v4 migration and existing Moq-heavy tests.
FastMoq.Provider.NSubstitute
Optional NSubstitute provider package for teams standardizing on NSubstitute instead of Moq.
FastMoq.Analyzers
Roslyn analyzers and code fixes for provider-first guidance and migration cleanup. These analyzer assets are included by default in the aggregate FastMoq package.
Provider-first APIs
FastMoq v4 defaults to the built-in reflection provider. Moq remains available as a compatibility provider, and additional providers can be added explicitly.
- IMockingProvider
- IMockingProviderCapabilities
- MockCreationOptions
- Moq provider types
- NSubstitute provider types
Notes
- Generated API reference from XML comments across the FastMoq projects
- Conceptual example pages published from the repository's sample documentation
- Searchable HTML output suitable for GitHub Pages and the
help.fastmoq.comhost - A reproducible build path using the pinned local DocFX tool manifest