Skip to content

Commit

Permalink
Merge pull request #80 from StevePy/master
Browse files Browse the repository at this point in the history
Altered namespace for extension method to revert a breaking change wi…
  • Loading branch information
romantitov authored Sep 2, 2024
2 parents 052842b + 4d63117 commit 11948b6
Showing 1 changed file with 10 additions and 5 deletions.
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);
}
}
}
}

0 comments on commit 11948b6

Please sign in to comment.