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;
        }
Ejemplo n.º 2
0
 public void Init()
 {
     MongoDbConfig.EnsureConfigured();
     SUT = TestRepository.Instance;
 }