public async Task <IActionResult> Get() { ServiceResponse <List <Dictionary <string, string> > > response = await symptomService.getSymptoms(); if (response.Data.Count != 0) { return(Ok(response)); } return(BadRequest(response)); }
public async void GetAllSymptoms() { SymptomService symptomService = new SymptomService(new SymptomsDao()); ServiceResponse <List <Dictionary <string, string> > > response = await symptomService.getSymptoms(); bool expected = true; bool actual = false; if (response.Data.Count != 0) { actual = true; } Assert.Equal(expected, actual); }