keyed Delete unit tests

This commit is contained in:
Sean Garrett
2023-06-16 11:51:40 +01:00
parent 54e756c695
commit c6545b9448
19 changed files with 565 additions and 138 deletions
@@ -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;