public void Get_Rates_Successfuly() { SurveyService service = new SurveyService(CreateStubRepository()); SurveyAverageDto foundSurvey = service.GetAllAverageRates(); foundSurvey.ShouldNotBeNull(); }
public IActionResult GetRates() { SurveyAverageDto surveyAverage = SurveyService.GetAllAverageRates(); if (surveyAverage == null) { return(BadRequest()); } return(Ok(surveyAverage)); }