public async Task DetailTest() { var fake = Mock.Of <ISurveysRepo>(); var surveyService = new SurveysService(fake); var id = "2"; await surveyService.DetailsSurveys(id); }
// GET: Surveys/Details/5 public async Task <IActionResult> Details(string id) { if (id == null) { return(NotFound()); } var survey = await _surveysService.DetailsSurveys(id); if (survey == null) { return(NotFound()); } return(View(survey)); }