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>(); }
public void TearDown() { _documentStoreService.Stop(); BsonClassMapHelper.Clear(); }
public void TearDown() { BsonClassMapHelper.Clear(); }