public async void Test17() { SalesOperations salesOperations = new SalesOperations(); await salesOperations.InitializeConsumers(); List <AlertDataModel> consumers = SalesOperations.Consumers; Assert.NotEmpty(consumers); }
public async void fillDetails() { SalesOperations sales = new SalesOperations(); await sales.InitializeConsumers(); Dictionary <string, int> dict = sales.GetNumberOfConsumersInEachRegion(); string[] regions = new string[] { "north", "south", "east", "west", "unknown" }; for (int i = 0; i < regions.Length; i++) { if (dict.ContainsKey(regions[i])) { regionCount[i] = dict[regions[i]]; } } this.north.Text = "" + regionCount[0]; this.south.Text = "" + regionCount[1]; this.east.Text = "" + regionCount[2]; this.west.Text = "" + regionCount[3]; this.unknown.Text = "" + regionCount[4]; }