From 40cf6b94f9850aff5212d42a400fda58ff6cbf70 Mon Sep 17 00:00:00 2001 From: Tim Huber Date: Wed, 24 Aug 2022 01:53:02 -0400 Subject: [PATCH] Removed generic type constraint - Allows TEntity to be a value type. --- .../MockQueryable.FakeItEasy/FakeItEasyExtensions.cs | 2 +- src/MockQueryable/MockQueryable.Moq/MoqExtensions.cs | 2 +- .../MockQueryable.NSubstitute/NSubstituteExtensions.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/MockQueryable/MockQueryable.FakeItEasy/FakeItEasyExtensions.cs b/src/MockQueryable/MockQueryable.FakeItEasy/FakeItEasyExtensions.cs index 17e9558..5e418fb 100644 --- a/src/MockQueryable/MockQueryable.FakeItEasy/FakeItEasyExtensions.cs +++ b/src/MockQueryable/MockQueryable.FakeItEasy/FakeItEasyExtensions.cs @@ -10,7 +10,7 @@ namespace MockQueryable.FakeItEasy { public static class FakeItEasyExtensions { - public static IQueryable BuildMock(this IEnumerable data) where TEntity : class + public static IQueryable BuildMock(this IEnumerable data) { return new TestAsyncEnumerableEfCore(data); } diff --git a/src/MockQueryable/MockQueryable.Moq/MoqExtensions.cs b/src/MockQueryable/MockQueryable.Moq/MoqExtensions.cs index a877d11..48581fe 100644 --- a/src/MockQueryable/MockQueryable.Moq/MoqExtensions.cs +++ b/src/MockQueryable/MockQueryable.Moq/MoqExtensions.cs @@ -10,7 +10,7 @@ namespace MockQueryable.Moq { public static class MoqExtensions { - public static IQueryable BuildMock(this IEnumerable data) where TEntity : class + public static IQueryable BuildMock(this IEnumerable data) { return new TestAsyncEnumerableEfCore(data); } diff --git a/src/MockQueryable/MockQueryable.NSubstitute/NSubstituteExtensions.cs b/src/MockQueryable/MockQueryable.NSubstitute/NSubstituteExtensions.cs index 810b845..19108cc 100644 --- a/src/MockQueryable/MockQueryable.NSubstitute/NSubstituteExtensions.cs +++ b/src/MockQueryable/MockQueryable.NSubstitute/NSubstituteExtensions.cs @@ -10,7 +10,7 @@ namespace MockQueryable.NSubstitute { public static class NSubstituteExtensions { - public static IQueryable BuildMock(this IEnumerable data) where TEntity : class + public static IQueryable BuildMock(this IEnumerable data) { return new TestAsyncEnumerableEfCore(data); }