public void TotalTest() { var a = new VoteAPI(); var b = a.total(); Assert.AreEqual(3, b.response.count); //var d = new List<PilkadaModel>() //foreach() }
static async Task<IEnumerable<VoteModel>> LoadData() { var calonApi = new VoteAPI(); await Task.Delay(100); return calonApi.total().response.data; }