MockQueryable
MockQueryable copied to clipboard
Mocking Entity Framework Core operations such ToListAsync, FirstOrDefaultAsync etc
CSProj files have been updated to enable SourceLink in your nuget --- *[This pull request was created with an automated workflow]* I noticed that your repository and Nuget package are...
Do we already have this feature? If no, I think this is necessery to make sure that `Include` statement is called or not in my repository or query. The sample...
# PR Details ## Description - Allows `TEntity` to be a value type. The extension methods had a [generic type constraint](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/where-generic-type-constraint) that prevented `IQueryable` where `T` is a value type...
Is there any chance that you can support the most common EF functions like `EF.Functions.Like`? An relatively simple approach might be to write an ExpressionVisitor that replace those function calls...
Hello, I am running into an issue where the ToListAsync() returns an empty list the second time it is called. The issue can be easily reproduced by modifying one of...
Hello! I've been using MockQueryable with .NET6 a lot Recently my project migrated to .NET 7 (EF Core 7) And I started to use new EF7 features: + ExecuteDeleteAsync ```...
Hi Guys. I use MockQueryable approach for EF async methods testing. But I've noticed that it doesn't work for async methods for collections, exactly 'bulk extensions': https://entityframework-extensions.net/bulk-update ` Message: System.AggregateException...
Consider: ``` var emails = new List(); emails.Add(new EmailQueueEntry()); var mockSet = emails.AsQueryable().BuildMockDbSet(); emails.Add(new EmailQueueEntry()); var list= await mockSet.Object.ToListAsync(); ``` This used to work fine in v5.0.1, but since upgrading...
I'm trying to mock the SingleOrDefaultAsync method with FakeItEasy but I get the error: "FakeItEasy0002: Member SingleOrDefaultAsync can not be intercepted. Only interface members and virtual, overriding, and abstract members...
Move the extension method `BuildMock` to the package `MockQueryable.EntityFrameworkCore`.