Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

Extensions for mocking [Entity Framework Core](https://github.com/dotnet/efcore) async queries like `ToListAsync`, `FirstOrDefaultAsync`, and more using popular mocking libraries such as **Moq**, **NSubstitute**, and **FakeItEasy** — all without hitting the database.




❤️ If you really like the tool, please
👉 [Support the project](https://github.com/sponsors/ramantsitou) or
☕ [Buy me a coffee](https://buymeacoffee.com/romant).
Expand Down Expand Up @@ -50,7 +53,19 @@ await query.ToListAsync();
```

---
## How It Works

MockQueryable creates a custom implementation of:

- `IQueryable<T>`
- `IAsyncEnumerable<T>`
- `IAsyncQueryProvider`

allowing EF Core async extensions to execute against in-memory collections.

👷🏻‍See [Architecture](docs/ARCHITECTURE.md).

---
## 🚀 Getting Started

### 1. Create Test Data
Expand Down
Loading