/// <summary> /// Cleans the test host and prepares it for brand new usage /// </summary> private void CleanUp() { // Clean up CurrentTest = null; TestStartupArgs = null; TimeLeft = default(TimeSpan); Results = null; ClientsInTest.Clear(); CurrentSessionIdentifier = default(Guid); }
/// <summary> /// Sets the clients that will be taking the test /// </summary> /// <param name="ClientsToAdd">The clients that will take the test</param> public void AddClients(List <ClientModel> ClientsToAdd) { if (IsTestInProgress) { // Use add latecommers method in this case return; } // Clear the list ClientsInTest.Clear(); foreach (var client in ClientsToAdd) { if (client.CanStartTest) { ClientsInTest.Add(client); } } }