public void GetDelegatesOnCourseForExport_returns_expected_values() { // Given var expectedFirstRecord = new CourseDelegateForExport { CustomisationName = "Standard", ApplicationName = "Entry Level - Win XP, Office 2003/07 OLD", IsDelegateActive = true, CandidateNumber = "PC97", CompleteBy = null, DelegateId = 32926, DelegateEmail = "erpock.hs@5bntu", Enrolled = new DateTime(2012, 07, 02, 13, 30, 37, 807), DelegateFirstName = "xxxxx", DelegateLastName = "xxxx", LastUpdated = new DateTime(2012, 07, 31, 10, 18, 39, 993), IsProgressLocked = false, ProgressId = 18395, RemovedDate = null, Completed = null, CustomisationId = 1, RegistrationAnswer1 = null, RegistrationAnswer2 = null, RegistrationAnswer3 = null, RegistrationAnswer4 = null, RegistrationAnswer5 = null, RegistrationAnswer6 = null, Answer1 = "", Answer2 = "", Answer3 = "", LoginCount = 1, Duration = 0, DiagnosticScore = 0, AllAttempts = 0, AttemptsPassed = 0, }; // When var result = courseDataService.GetDelegatesOnCourseForExport(1, 2).ToList(); // Then using (new AssertionScope()) { result.Should().HaveCount(3); result.First().Should().BeEquivalentTo(expectedFirstRecord); } }