public void GetApplicationsAvailableToCentreByCategory_returns_expected_values() { // Given const int centreId = 101; int? categoryId = null; var expectedFirstApplication = new ApplicationDetails { ApplicationId = 1, ApplicationName = "Entry Level - Win XP, Office 2003/07 OLD", PLAssess = false, DiagAssess = false, CourseTopicId = 3, CategoryName = "Office 2007", CourseTopic = "Microsoft Office", }; // When var result = courseDataService.GetApplicationsAvailableToCentreByCategory(centreId, categoryId).ToList(); // Then using (new AssertionScope()) { result.Should().HaveCount(61); result.First().Should().BeEquivalentTo(expectedFirstApplication); } }