protected MongoDbTKeyDocumentTestBase(MongoDbTestFixture <T, TKey> fixture) { _fixture = fixture; var type = CreateTestDocument(); DocumentTypeName = type.GetType().FullName; if (type is IPartitionedDocument) { PartitionKey = ((IPartitionedDocument)type).PartitionKey; } _fixture.PartitionKey = PartitionKey; TestClassName = GetClassName(); MongoDbConfig.EnsureConfigured(); SUT = TestRepository.Instance; }