예제 #1
0
        public void SetUp()
        {
            BsonClassMapHelper.Clear();

            var config = new DocumentStoreTestConfiguration();

            MongoDbTestConnectionProvider.DropTestsTenant();
            config.SetTestAddress(TestConfig.TestHostServiceAddress);
            _documentStoreService = new DocumentStoreBootstrapper();
            _documentStoreService.Start(config);

            TenantContext.Enter(new TenantId(TestConfig.Tenant));
            var tenant = ContainerAccessor.Instance.Resolve <TenantManager>().Current;

            _writer = tenant.Container.Resolve <IDocumentWriter>();
        }
예제 #2
0
 public void TearDown()
 {
     _documentStoreService.Stop();
     BsonClassMapHelper.Clear();
 }
 public void TearDown()
 {
     BsonClassMapHelper.Clear();
 }