Beispiel #1
0
        public void Get_Rates_Successfuly()
        {
            SurveyService    service     = new SurveyService(CreateStubRepository());
            SurveyAverageDto foundSurvey = service.GetAllAverageRates();

            foundSurvey.ShouldNotBeNull();
        }
Beispiel #2
0
        public IActionResult GetRates()
        {
            SurveyAverageDto surveyAverage = SurveyService.GetAllAverageRates();

            if (surveyAverage == null)
            {
                return(BadRequest());
            }
            return(Ok(surveyAverage));
        }