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.AddVirtualUsers(this.Population, Amount); }