예제 #1
0
 /// <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
     }
 }
예제 #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));
        }
예제 #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));
        }