-
-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #80 from StevePy/master
Altered namespace for extension method to revert a breaking change wi…
- Loading branch information
Showing
1 changed file
with
10 additions
and
5 deletions.
There are no files selected for viewing
15 changes: 10 additions & 5 deletions
15
src/MockQueryable/MockQueryable.EntityFrameworkCore/MockQueryableExtensions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,19 @@ | ||
using System.Collections.Generic; | ||
using MockQueryable.EntityFrameworkCore; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
|
||
|
||
namespace MockQueryable.EntityFrameworkCore | ||
// Moving MockQueryableExtensions BuildMock into the MockQueryable.EntityFrameworkCore | ||
// namespace had breaking changes with earlier extensions added to MockQueryable.Moq | ||
// and other previous extension method locations. Moving this extension up a namespace to | ||
// MockQueryable aleviates that breaking change. It still needs to remain in EF core since it | ||
// is dependent on the EF Core AsyncEnumerable. | ||
namespace MockQueryable | ||
{ | ||
public static class MockQueryableExtensions | ||
{ | ||
public static IQueryable<TEntity> BuildMock<TEntity>(this IEnumerable<TEntity> data) where TEntity : class | ||
{ | ||
{ | ||
return new TestAsyncEnumerableEfCore<TEntity>(data); | ||
} | ||
} | ||
} | ||
} |