read only and tests

This commit is contained in:
Sean Garrett
2023-07-01 22:27:11 +01:00
parent 240b61d1d2
commit 40e287418b
10 changed files with 2466 additions and 492 deletions
@@ -4,23 +4,21 @@ using MongoDbGenericRepository.Models;
namespace CoreUnitTests.Infrastructure.Model;
public class TestDocument : Document
{
public TestDocument()
{
Version = 2;
Nested = new Nested
{
SomeDate = DateTime.UtcNow
};
Nested = new Nested {SomeDate = DateTime.UtcNow};
Children = new List<Child>();
}
public int SomeValue { get; set; }
public string SomeContent { get; set; }
public string SomeContent2 { get; set; }
public string SomeContent3 { get; set; }
public int GroupingKey { get; set; }
@@ -29,4 +27,3 @@ public class TestDocument : Document
public List<Child> Children { get; set; }
}
@@ -7,4 +7,6 @@ public class TestProjection
public Guid TestDocumentId { get; set; }
public DateTime NestedData { get; set; }
public int Count { get; set; }
}