diff --git a/CoreIntegrationTests/CRUDTKeyPartitionedCollectionNameAttributeTests.cs b/CoreIntegrationTests/CRUDTKeyPartitionedCollectionNameAttributeTests.cs index e9f3e29..ef77cfc 100644 --- a/CoreIntegrationTests/CRUDTKeyPartitionedCollectionNameAttributeTests.cs +++ b/CoreIntegrationTests/CRUDTKeyPartitionedCollectionNameAttributeTests.cs @@ -1,10 +1,13 @@ using CoreIntegrationTests.Infrastructure; +using MongoDB.Bson; using MongoDbGenericRepository.Attributes; using MongoDbGenericRepository.Models; using System; namespace CoreIntegrationTests { + #region Guid Type + [CollectionName("TestingCNameAttrPartTKey")] public class CoreTKeyPartitionedCollectionNameDoc : TestDoc, IPartitionedDocument { @@ -28,4 +31,35 @@ namespace CoreIntegrationTests return "CoreCRUDTKeyPartitionedCollectionNameAttributeTests"; } } + + #endregion Guid Type + + + #region ObjectId Type + + [CollectionName("TestingCNameAttrPartObjectId")] + public class CoreObjectIdPartitionedCollectionNameDoc : TestDoc, IPartitionedDocument + { + public CoreObjectIdPartitionedCollectionNameDoc() + { + PartitionKey = "CoreTestPartitionKeyObjectId"; + } + + public string PartitionKey { get; set; } + } + + public class CRUDObjectIdPartitionedCollectionNameAttributeTests : MongoDbTKeyDocumentTestBase + { + public CRUDObjectIdPartitionedCollectionNameAttributeTests(MongoDbTestFixture fixture) : base(fixture) + { + + } + + public override string GetClassName() + { + return "CoreCRUDTKeyPartitionedCollectionNameAttributeTests"; + } + } + + #endregion ObjectId Type } diff --git a/CoreIntegrationTests/CRUDTests.cs b/CoreIntegrationTests/CRUDTests.cs index bdc73f6..2c92535 100644 --- a/CoreIntegrationTests/CRUDTests.cs +++ b/CoreIntegrationTests/CRUDTests.cs @@ -11,7 +11,6 @@ namespace CoreIntegrationTests { public CRUDTests(MongoDbTestFixture fixture) : base(fixture) { - } public override string GetClassName() diff --git a/CoreIntegrationTests/Infrastructure/MongoDbTestFixture.cs b/CoreIntegrationTests/Infrastructure/MongoDbTestFixture.cs index bc360a8..7675ba4 100644 --- a/CoreIntegrationTests/Infrastructure/MongoDbTestFixture.cs +++ b/CoreIntegrationTests/Infrastructure/MongoDbTestFixture.cs @@ -5,13 +5,11 @@ using System.Collections.Concurrent; using System.Collections.Generic; using System.Linq; - namespace CoreIntegrationTests.Infrastructure { - public class MongoDbTestFixture : IDisposable - where T : IDocument, new() - where TKey : IEquatable + where T : IDocument, new() + where TKey : IEquatable { public IMongoDbContext Context; diff --git a/MongoDbGenericRepository/BaseMongoRepository.Main.cs b/MongoDbGenericRepository/BaseMongoRepository.Main.cs index 19b9e86..11223b2 100644 --- a/MongoDbGenericRepository/BaseMongoRepository.Main.cs +++ b/MongoDbGenericRepository/BaseMongoRepository.Main.cs @@ -39,7 +39,6 @@ namespace MongoDbGenericRepository { } - /// /// Asynchronously returns a paginated list of the documents matching the filter condition. /// @@ -71,7 +70,6 @@ namespace MongoDbGenericRepository .ToListAsync(); } - /// /// Asynchronously returns a paginated list of the documents matching the filter condition. ///