public void GetCourseStatisticsAtCentreFilteredByCategory_should_return_course_statistics_correctly() { // Given const int centreId = 101; int? categoryId = null; // When var result = courseDataService.GetCourseStatisticsAtCentreFilteredByCategory(centreId, categoryId).ToList(); // Then var expectedFirstCourse = new CourseStatistics { CustomisationId = 100, CentreId = 101, Active = false, AllCentres = false, ApplicationId = 1, ApplicationName = "Entry Level - Win XP, Office 2003/07 OLD", CustomisationName = "Standard", DelegateCount = 25, AllAttempts = 49, AttemptsPassed = 34, CompletedCount = 5, HideInLearnerPortal = false, CategoryName = "Office 2007", CourseTopic = "Microsoft Office", LearningMinutes = "N/A", }; result.Should().HaveCount(259); result.First().Should().BeEquivalentTo(expectedFirstCourse); }