Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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);
}
}
}
}