public void Get_current_courses_should_return_courses_for_candidate() { // When const int candidateId = 1; var result = courseDataService.GetCurrentCourses(candidateId).ToList(); // Then var expectedFirstCourse = new CurrentCourse { Name = "Office 2013 Essentials for the Workplace - Erin Test 01", Id = 15853, LastAccessed = new DateTime(2019, 1, 22, 8, 20, 39, 133), StartedDate = new DateTime(2016, 7, 6, 11, 12, 15, 393), DiagnosticScore = 0, IsAssessed = true, HasDiagnostic = true, HasLearning = true, Passes = 2, Sections = 6, CompleteByDate = new DateTime(2018, 12, 31, 0, 0, 0, 0), GroupCustomisationId = 0, SupervisorAdminId = 0, ProgressID = 173218, EnrollmentMethodID = 1, PLLocked = false, }; result.Should().HaveCount(4); result.First().Should().BeEquivalentTo(expectedFirstCourse); }