Esempio n. 1
0
 /// <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);
 }
Esempio n. 2
0
        /// <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);
                }
            }
        }