Пример #1
0
        void ITestModule.Run()
        {
            if (string.IsNullOrWhiteSpace(this.Population))
            {
                throw new InvalidOperationException("No population set where the virtual users should be get added/removed. Please set a valid population.");
            }

            if (this.Amount <= 0)
            {
                throw new ArgumentOutOfRangeException("Amount");
            }

            api.RemoveVirtualUsers(this.Population, this.Amount);
        }