/// <summary> /// Cleanup the DB if it was restored during the testing process. A restoredDB will /// removed from the server and then .mdf/ldf files deleted from disk /// </summary> /// <param name="reallyCleanUpDatabase">ReallyCleanUpDatabase.NotIfItCameFromABackupFile: means to /// check whether the database came from a backup file or has previously been cleaned. If either /// of those two things is true, then the database is not cleaned up. /// /// ReallyCleanUpDatabase.YesReally: means to clean up the database regardless of its origin. /// </param> public void Cleanup(ReallyCleanUpDatabase reallyCleanUpDatabase = ReallyCleanUpDatabase.YesReally) { if (_cleanupDatabase || reallyCleanUpDatabase == ReallyCleanUpDatabase.YesReally) { DoCleanup(); } }
/// <summary> /// Cleaup the DB if it was restored during the testing process. A restoredDB will /// removed from the server and then .mdf/ldf files deleted from disk /// </summary> /// <param name="reallyCleanUpDatabase">ReallyCleanUpDatabase.NotIfItCameFromABackupFile: means to /// check whether the database came from a backup file or has previously been cleaned. If either /// of those two things is true, then the database is not cleaned up. /// /// ReallyCleanUpDatabase.YesReally: means to clean up the database regardless of its origin. /// </param> public void Cleanup(ReallyCleanUpDatabase reallyCleanUpDatabase = ReallyCleanUpDatabase.YesReally) { if (_cleanupDatabase || reallyCleanUpDatabase == ReallyCleanUpDatabase.YesReally) { DoCleanup(); } }