示例#1
0
        protected override void TestFixtureSetUp()
        {
            using (var documentStore =
                       RavenDBUtilities.CreateNewDocumentStoreInitializeAndCreateUtilIndexes(
                           ConfigurationManager.AppSettings["DefaultConnectionString"]))
            {
                RavenDBUtilities.DeleteAllDocumentsAndWaitForStaleIndexes(documentStore);
            }

            base.TestFixtureSetUp();
        }
示例#2
0
 public void TestFixtureTearDown()
 {
     RavenDBUtilities.DeleteAllDocumentsAndWaitForStaleIndexes(DependencyResolver.Current.GetService <IDocumentStore>());
 }
示例#3
0
 public void ClearAll()
 {
     RavenDBUtilities.DeleteAllDocumentsAndWaitForStaleIndexes(_documentStore);
 }