Welcome to the comprehensive FastMoq documentation! This documentation is designed to help you get the most out of FastMoq, from your first test to advanced enterprise scenarios.
Perfect for developers new to FastMoq. Learn the basics and write your first test in minutes.
- Installation and setup
- Your first FastMoq test
- Understanding the architecture
- Common patterns and best practices
- Troubleshooting guide
Comprehensive comparison of FastMoq with other popular mocking frameworks.
- Side-by-side feature comparison
- Migration guides from Moq and NSubstitute
- Performance and memory usage analysis
- When to choose FastMoq vs alternatives
👨🍳 Cookbook
Practical recipes for real-world testing scenarios.
- API Controller testing
- Entity Framework Core with DbContext
- Background Services and hosted services
- HttpClient and external API integration
- Configuration and Options patterns
- Logging verification
- Azure Services integration
- File system operations
Complete, runnable examples demonstrating FastMoq in production-like scenarios.
- E-Commerce Order Processing - Full Azure integration
- Microservices Communication - Service-to-service patterns
- Background Processing - Queue and job processing
- Blazor Web Applications - Full-stack testing
Performance analysis and productivity improvements.
- Execution speed comparisons
- Memory usage analysis
- Developer productivity metrics
- Real-world impact studies
- ROI calculations
| Experience | Start Here | Next Steps |
|---|---|---|
| New to Mocking | Getting Started | Simple Cookbook Examples |
| Coming from Moq | Feature Parity | Migration Guide |
| Enterprise Teams | Sample Applications | Benchmarks |
| Use Case | Documentation | Sample Code |
|---|---|---|
| Web APIs | API Controller Testing | E-Commerce Sample |
| Database Testing | EF Core Testing | Repository Patterns |
| Azure Integration | Azure Services | Complete Azure App |
| Background Jobs | Background Services | Queue Processing |
| Blazor Apps | Blazor Components | Blazor Sample |
FastMoq is designed for developer productivity and maintainable tests:
- 70% reduction in test setup code
- Automatic dependency injection eliminates boilerplate
- Fluent API for readable test scenarios
- 50% faster test execution
- 60% less memory usage
- Better scalability for large test suites
- Built-in support for EF Core, HttpClient, IFileSystem
- Azure services integration
- Configuration and Options patterns
- Blazor and Web testing
- Comprehensive logging verification
- Advanced scenarios support
- Team productivity improvements
- Migration tools from other frameworks
- Read Getting Started
- Try the first test example
- Understand MockerTestBase
- Pick a relevant cookbook recipe
- Try it in your own project
- Explore advanced setup options
- Study a complete sample application
- Review performance benchmarks
- Plan your migration strategy
- Explore all cookbook patterns
- Adapt sample applications to your domain
- Contribute back to the community
- Documentation: You're here! Start with the most relevant section above
- Issues: GitHub Issues for bugs and feature requests
- Discussions: GitHub Discussions for questions and community help
- API Reference: Complete API Documentation
We welcome contributions! See our:
- ⭐ Star the repository for updates
- 📋 Watch releases for new versions
- 🐦 Follow discussions for community insights
- NuGet Package: FastMoq on NuGet
- GitHub Repository: cwinland/FastMoq
- API Documentation: Complete API Reference
- Release Notes: GitHub Releases
This documentation is for FastMoq 3.0+. For older versions:
Ready to get started? Jump to Getting Started or pick a specific topic from the navigation above!