File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed
src/MockQueryable/MockQueryable.EntityFrameworkCore Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change 1- using System . Collections . Generic ;
1+ using MockQueryable . EntityFrameworkCore ;
2+ using System . Collections . Generic ;
23using System . Linq ;
34
4-
5- namespace MockQueryable . EntityFrameworkCore
5+ // Moving MockQueryableExtensions BuildMock into the MockQueryable.EntityFrameworkCore
6+ // namespace had breaking changes with earlier extensions added to MockQueryable.Moq
7+ // and other previous extension method locations. Moving this extension up a namespace to
8+ // MockQueryable aleviates that breaking change. It still needs to remain in EF core since it
9+ // is dependent on the EF Core AsyncEnumerable.
10+ namespace MockQueryable
611{
712 public static class MockQueryableExtensions
813 {
914 public static IQueryable < TEntity > BuildMock < TEntity > ( this IEnumerable < TEntity > data ) where TEntity : class
10- {
15+ {
1116 return new TestAsyncEnumerableEfCore < TEntity > ( data ) ;
12- }
17+ }
1318 }
1419}
You can’t perform that action at this time.
0 commit comments