romantitov / MockQueryable

Mocking Entity Framework Core operations such ToListAsync, FirstOrDefaultAsync etc
MIT License
767 stars 74 forks source link

Move BuildMock to MockQueryable.EntityFrameworkCore #77

Closed skarllot closed 4 weeks ago

skarllot commented 4 months ago

Move the extension method BuildMock to the package MockQueryable.EntityFrameworkCore.

romantitov commented 4 weeks ago

Hello @skarllot could you provide more detailed reason why this change should be done?

skarllot commented 4 weeks ago

Because it does not depend on NSubstitute but only on the TestAsyncEnumerableEfCore class defined in MockQueryable.EntityFrameworkCore, it would allow sharing the implementation regardless of the mocking library used, and furthermore, allow using no mocking library at all if the user desires.

romantitov commented 4 weeks ago

Done in v7.0.2

scp-mb commented 3 weeks ago

Breaking change on a patch version? Not cool. Why not release is at 8.0.0 if it's got a breaking change in it.