コード例 #1
0
        private static void DeleteDataFromDb()
        {
            _distributedDatabase.ResetDistributedDatabase();

            if (_exhibitId != 0)
            {
                _exhibitDatabase = new ExhibitDatabase(_exhibitDatabaseConnectionString);
                _exhibitDatabase.ResetExhibitDatabase(_exhibitId);
                Exhibit.DeleteExhibit(_caseId, _exhibitId);
                _exhibitDatabase.DropExhibitDatabase(_exhibitId);
            }

            if (_caseId != 0)
            {
                Case.DeleteCase(_caseId);
            }
        }
 private static void BeforeEachScenario()
 {
     _distributedDatabase.ResetDistributedDatabase();
 }