private static void DeleteTestDataFromDb() { Exhibit.DeleteExhibit(_caseId, _exhibitId); _exhibitDatabase.DropExhibitDatabase(_exhibitId); Case.DeleteCase(_caseId); //TODO OV is there a BLL method that can be used to replace this one? if (_userWorkflowTable.IsWorkflowFoundByCustomName(_workflowDataModel.CustomWorkflowName)) { var workflowId = _userWorkflowTable.GetWorkflowIdByName(_workflowDataModel.CustomWorkflowName); Assert.AreEqual(1, _userWorkflowTable.DeleteUserWorkflow(workflowId)); } }
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); } }