public static void StartApp(bool optOutStatus) { // Convenient for the OptOutTest which must pass optOutStatus = true if (Crittercism.TestNetwork == null) { // First time being called by the test suite. Cleanup(); } Crittercism.SetOptOutStatus(optOutStatus); Crittercism.Init(VALID_APPID); }
public static void Cleanup() { // This method is for clean all the possible variables that may be will used by another unit test TestNetwork().Cleanup(); Crittercism.TestNetwork = TestNetwork(); // TODO: AppLoadTest3 forcing a few messy cleanup lines here. Can this better? APM.enabled = true; UserflowReporter.enabled = true; Crittercism.SetOptOutStatus(false); if (Crittercism.MessageQueue != null) { Crittercism.MessageQueue.Clear(); } StorageHelper.Cleanup(); }