Ejemplo n.º 1
0
        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));
        }
Ejemplo n.º 2
0
        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);
        }