/// <summary>
 /// Forcibly shut down all of the azure emulators
 /// </summary>
 public static void StopAllAzureEmulatorServices()
 {
     foreach (var process in Process.GetProcessesByName("DFService"))
     {
         AzureEmulatorHelper.KillProcess(process);
         // the process isn't owned by the caller so we can't check its exit code
     }
 }
Exemple #2
0
        public static void Cleanup()
        {
            DateTime startTime = DateTime.UtcNow;

            AzureEmulatorHelper.StopAllAzureEmulatorServices();

            // print out how long this method took to execute
            Trace.WriteLine(string.Format("Cleanup() Elapsed Time: {0}", DateTime.UtcNow - startTime));
        }
Exemple #3
0
        public static void Initialize(TestContext context)
        {
            DateTime startTime = DateTime.UtcNow;

            AzureEmulatorHelper.StartAzureStorageEmulator();

            // print out how long this method took to execute
            Trace.WriteLine(string.Format("Initialize() Elapsed Time: {0}", DateTime.UtcNow - startTime));
        }