public void GetAllCentreSummariesForSuperAdmin_calls_dataService_and_returns_all_summary_details() { // Given var centres = Builder <CentreSummaryForSuperAdmin> .CreateListOfSize(10).Build(); A.CallTo(() => centresDataService.GetAllCentreSummariesForSuperAdmin()).Returns(centres); // When var result = centresService.GetAllCentreSummariesForSuperAdmin(); // Then result.Should().HaveCount(10); }
public IEnumerable <CentreSummaryForSuperAdmin> GetAllCentreSummariesForSuperAdmin() { return(centresDataService.GetAllCentreSummariesForSuperAdmin()); }