예제 #1
0
 public void DeletedWorkspace(int testWorkspaceID)
 {
     using (var client = TestEnvironment.Instance.ServicesManager.CreateProxy <IRSAPIClient>(Relativity.API.ExecutionIdentity.System))
     {
         DeleteWorkspace.Delete(client, testWorkspaceID);
     }
 }
예제 #2
0
 public void Execute_TestFixtureTeardown()
 {
     if (_workspaceCreatedByTest)
     { //-- delete the workspace created by the test execution
         DeleteWorkspace.Delete(_client, _workspaceId);
     }
 }
 public void TearDown()
 {
     _sqlList.Clear();
     Sut.Cleanup();
     DeleteWorkspace.DeleteTestWorkspace(_workspaceId, _helper.GetServicesManager(), ConfigurationHelper.ADMIN_USERNAME, ConfigurationHelper.DEFAULT_PASSWORD);
     _helper = null;
 }
예제 #4
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.....");
            }
        }