keyed Delete unit tests
This commit is contained in:
1 parent
54e756c695
commit
c6545b9448
19 files changed
+565
-138
No files matched your search
@@ -4,11 +4,12 @@ using MongoDbGenericRepository.Models;
|
||||
|
||||
namespace CoreUnitTests.Infrastructure.Model;
|
||||
|
||||
public class TestDocumentWithKey : IDocument<int>
|
||||
public class TestDocumentWithKey<TKey> : IDocument<TKey>
|
||||
where TKey : IEquatable<TKey>
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public TKey Id { get; set; }
|
||||
public int Version { get; set; }
|
||||
|
||||
|
||||
public TestDocumentWithKey()
|
||||
{
|
||||
Version = 2;
|
||||
|
||||
Reference in new issue
Block a user