public SchoolsPresentationTests() { List <School> schools = new List <School>(); for (int i = 0; i < 10; i++) { schools.Add(new School() { Name = $"School Name {i}", Description = $"Description {1} ..." }); } mockSchoolsService = new Mock <ISchoolsService>(); mockSchoolsService.Setup(p => p.GetSchools("", "")).Returns(schools); schoolsPresentation = new SchoolsPresentation(mockSchoolsService.Object); }
public SchoolsController(ISchoolsPresentation schoolPresentation) { _schoolPresentation = schoolPresentation; }