public void TearDown()
 {
     _sqlList.Clear();
     Sut.Cleanup();
     DeleteWorkspace.DeleteTestWorkspace(_workspaceId, _helper.GetServicesManager(), ConfigurationHelper.ADMIN_USERNAME, ConfigurationHelper.DEFAULT_PASSWORD);
     _helper = null;
 }
예제 #2
0
        public void Execute_TestFixtureTeardown()
        {
            try
            {
                Console.WriteLine("Test Teardown START.....");

                //Delete workspace
                Console.WriteLine("Deleting workspace.....");
                if (!_debug)
                {
                    DeleteWorkspace.DeleteTestWorkspace(_workspaceId, _servicesManager, ConfigurationHelper.ADMIN_USERNAME, ConfigurationHelper.DEFAULT_PASSWORD);
                    Console.WriteLine("Workspace deleted.....");
                }
                else
                {
                    Console.WriteLine("Not deleting workspace because tests are using existing");
                }
            }
            catch (Exception ex)
            {
                throw new Exception("Error encountered in Test Teardown.", ex);
            }
            finally
            {
                Console.WriteLine("Test Teardown END.....");
                Console.WriteLine("Test END.....");
            }
        }