diff --git a/src/MockQueryable/MockQueryable.FakeItEasy/FakeItEasyExtensions.cs b/src/MockQueryable/MockQueryable.FakeItEasy/FakeItEasyExtensions.cs index 1f879b8..e3ae1c5 100644 --- a/src/MockQueryable/MockQueryable.FakeItEasy/FakeItEasyExtensions.cs +++ b/src/MockQueryable/MockQueryable.FakeItEasy/FakeItEasyExtensions.cs @@ -30,7 +30,7 @@ public static DbSet BuildMockDbSet(this IQueryable da return mock; } - [Obsolete] + [Obsolete("Use BuildMockDbSet instead")] public static DbQuery BuildMockDbQuery(this IQueryable data) where TEntity : class { var mock = A.Fake>( diff --git a/src/MockQueryable/MockQueryable.FakeItEasy/MockQueryable.FakeItEasy.csproj b/src/MockQueryable/MockQueryable.FakeItEasy/MockQueryable.FakeItEasy.csproj index ca9535b..13bc89e 100644 --- a/src/MockQueryable/MockQueryable.FakeItEasy/MockQueryable.FakeItEasy.csproj +++ b/src/MockQueryable/MockQueryable.FakeItEasy/MockQueryable.FakeItEasy.csproj @@ -11,9 +11,9 @@ https://github.com/romantitov/MockQueryable https://github.com/romantitov/MockQueryable true - 1.2.0-alpha - 1.2.0.0 - 1.2.0.0 + 3.0.0 + 3.0.0.0 + 3.0.0.0 diff --git a/src/MockQueryable/MockQueryable.Moq/MockQueryable.Moq.csproj b/src/MockQueryable/MockQueryable.Moq/MockQueryable.Moq.csproj index 76f4a80..69a8937 100644 --- a/src/MockQueryable/MockQueryable.Moq/MockQueryable.Moq.csproj +++ b/src/MockQueryable/MockQueryable.Moq/MockQueryable.Moq.csproj @@ -4,7 +4,7 @@ netstandard2.1 Roman Titov - 1.2.0-alpha + Extension for mocking Entity Framework Core operations such ToListAsync, FirstOrDefaultAsync etc. by Moq When writing tests for your application it is often desirable to avoid hitting the database. The extension allows you to achieve this by creating a context – with behavior defined by your tests – that makes use of in-memory data. https://github.com/romantitov/MockQueryable @@ -12,8 +12,9 @@ When writing tests for your application it is often desirable to avoid hitting t Moq EntityFrameworkCore Queryable mock EF UnitTests true MockQueryable.Moq - 1.2.0.0 - 1.2.0.0 + 3.0.0 + 3.0.0.0 + 3.0.0.0 AutoMapper support diff --git a/src/MockQueryable/MockQueryable.Moq/MoqExtensions.cs b/src/MockQueryable/MockQueryable.Moq/MoqExtensions.cs index 94f921b..a577a2e 100644 --- a/src/MockQueryable/MockQueryable.Moq/MoqExtensions.cs +++ b/src/MockQueryable/MockQueryable.Moq/MoqExtensions.cs @@ -27,7 +27,7 @@ public static Mock> BuildMockDbSet(this IQueryable instead")] public static Mock> BuildMockDbQuery(this IQueryable data) where TEntity : class { diff --git a/src/MockQueryable/MockQueryable.NSubstitute/MockQueryable.NSubstitute.csproj b/src/MockQueryable/MockQueryable.NSubstitute/MockQueryable.NSubstitute.csproj index 35f89c3..a0f1837 100644 --- a/src/MockQueryable/MockQueryable.NSubstitute/MockQueryable.NSubstitute.csproj +++ b/src/MockQueryable/MockQueryable.NSubstitute/MockQueryable.NSubstitute.csproj @@ -4,15 +4,15 @@ netstandard2.1 Roman Titov - 1.2.0-alpha Extension for mocking Entity Framework Core operations such ToListAsync, FirstOrDefaultAsync etc. by NSubstitute When writing tests for your application it is often desirable to avoid hitting the database. The extension allows you to achieve this by creating a context – with behavior defined by your tests – that makes use of in-memory data. https://github.com/romantitov/MockQueryable https://github.com/romantitov/MockQueryable NSubstitute EntityFrameworkCore Queryable mock EF UnitTests true - 1.2.0.0 - 1.2.0.0 + 3.0.0 + 3.0.0.0 + 3.0.0.0 AutoMapper support diff --git a/src/MockQueryable/MockQueryable.NSubstitute/NSubstituteExtensions.cs b/src/MockQueryable/MockQueryable.NSubstitute/NSubstituteExtensions.cs index 52f5140..e19b4ba 100644 --- a/src/MockQueryable/MockQueryable.NSubstitute/NSubstituteExtensions.cs +++ b/src/MockQueryable/MockQueryable.NSubstitute/NSubstituteExtensions.cs @@ -27,7 +27,7 @@ public static DbSet BuildMockDbSet(this IQueryable da return mock; } - [Obsolete] + [Obsolete("Use BuildMockDbSet instead")] public static DbQuery BuildMockDbQuery(this IQueryable data) where TEntity : class { var mock = Substitute.For, IQueryable, IAsyncEnumerable>(); diff --git a/src/MockQueryable/MockQueryable.Sample/MockQueryable.Sample.csproj b/src/MockQueryable/MockQueryable.Sample/MockQueryable.Sample.csproj index 7349a6f..f236af3 100644 --- a/src/MockQueryable/MockQueryable.Sample/MockQueryable.Sample.csproj +++ b/src/MockQueryable/MockQueryable.Sample/MockQueryable.Sample.csproj @@ -7,8 +7,8 @@ - - + + diff --git a/src/MockQueryable/MockQueryable/MockQueryable.csproj b/src/MockQueryable/MockQueryable/MockQueryable.csproj index a0807ac..9cdd2a5 100644 --- a/src/MockQueryable/MockQueryable/MockQueryable.csproj +++ b/src/MockQueryable/MockQueryable/MockQueryable.csproj @@ -11,9 +11,9 @@ https://github.com/romantitov/MockQueryable https://github.com/romantitov/MockQueryable true - 1.2.0-alpha - 1.2.0.0 - 1.2.0.0 + 3.0.0 + 3.0.0.0 + 3.0.0.0 @@ -22,7 +22,7 @@ - +