public static void TestRunInitialize(TestContext context) { try { // Try to delete the snapshot in case it was left over from aborted test runs DatabaseSnapshot.DeleteSnapShot(); } catch { /* this should fail with snapshot does not exist */ } DatabaseSnapshot.SetupStoredProcedures(); DatabaseSnapshot.CreateSnapShot(); }
public void TestCleanup() { DatabaseSnapshot.RestoreSnapShot(); }
public static void TestRunCleanup() { DatabaseSnapshot.DeleteSnapShot(); }