示例#1
0
        public void Get_available_courses_should_return_courses_for_candidate()
        {
            // When
            const int candidateId = 254480;
            const int centreId    = 101;
            var       result      = courseDataService.GetAvailableCourses(candidateId, centreId).ToList();

            // Then
            var expectedFirstCourse = new AvailableCourse
            {
                Name           = "5 Jan Test - New",
                Id             = 18438,
                Brand          = "Local content",
                Topic          = "Microsoft Office",
                Category       = "Digital Workplace",
                DelegateStatus = 0,
                HasLearning    = true,
                HasDiagnostic  = true,
                IsAssessed     = true,
            };

            result.Should().HaveCountGreaterOrEqualTo(1);
            result.First().Should().BeEquivalentTo(expectedFirstCourse);
        }