456af09a84
+ Added GetByMax, GetByMaxAsync, GetByMin, GetByMinAsync, GetMaxValue and GetMaxValueAsync Methods (GetMinValue and GetMinValueAsync will come in another PR) + Added tests
29 lines
709 B
C#
29 lines
709 B
C#
using CoreIntegrationTests.Infrastructure;
|
|
using MongoDbGenericRepository.Models;
|
|
using System;
|
|
|
|
namespace CoreIntegrationTests
|
|
{
|
|
public class CorePartitionedDoc : TestDoc, IPartitionedDocument
|
|
{
|
|
public CorePartitionedDoc()
|
|
{
|
|
PartitionKey = "CoreTestPartitionKey";
|
|
}
|
|
|
|
public string PartitionKey { get; set; }
|
|
}
|
|
|
|
public class CRUDPartitionedTests : MongoDbDocumentTestBase<CorePartitionedDoc>
|
|
{
|
|
public CRUDPartitionedTests(MongoDbTestFixture<CorePartitionedDoc, Guid> fixture) : base(fixture)
|
|
{
|
|
}
|
|
|
|
public override string GetClassName()
|
|
{
|
|
return "CoreCRUDPartitionedTests";
|
|
}
|
|
}
|
|
}
|