Skip to content

Commit 11948b6

Browse files
authored
Merge pull request #80 from StevePy/master
Altered namespace for extension method to revert a breaking change wi…
2 parents 052842b + 4d63117 commit 11948b6

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed
Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,19 @@
1-
using System.Collections.Generic;
1+
using MockQueryable.EntityFrameworkCore;
2+
using System.Collections.Generic;
23
using 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
}

0 commit comments

Comments
 (0)