Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

README.md

FastMoq Documentation

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.

📚 Documentation Structure

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

🎯 Quick Navigation

By Experience Level

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

By Use Case

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

🏆 Key Advantages

FastMoq is designed for developer productivity and maintainable tests:

📝 Less Code, More Testing

  • 70% reduction in test setup code
  • Automatic dependency injection eliminates boilerplate
  • Fluent API for readable test scenarios

⚡ Better Performance

  • 50% faster test execution
  • 60% less memory usage
  • Better scalability for large test suites

🎛️ Modern .NET Patterns

  • Built-in support for EF Core, HttpClient, IFileSystem
  • Azure services integration
  • Configuration and Options patterns
  • Blazor and Web testing

🔧 Enterprise Ready

  • Comprehensive logging verification
  • Advanced scenarios support
  • Team productivity improvements
  • Migration tools from other frameworks

📖 Learning Path

1. Foundation (30 minutes)

  1. Read Getting Started
  2. Try the first test example
  3. Understand MockerTestBase

2. Practical Application (1 hour)

  1. Pick a relevant cookbook recipe
  2. Try it in your own project
  3. Explore advanced setup options

3. Production Readiness (2-3 hours)

  1. Study a complete sample application
  2. Review performance benchmarks
  3. Plan your migration strategy

4. Mastery (Ongoing)

  1. Explore all cookbook patterns
  2. Adapt sample applications to your domain
  3. Contribute back to the community

🤝 Community and Support

Getting Help

Contributing

We welcome contributions! See our:

Stay Updated

  • Star the repository for updates
  • 📋 Watch releases for new versions
  • 🐦 Follow discussions for community insights

🔗 External Links

🏷️ Version Information

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!