Ejemplo n.º 1
0
        public void GetCoursesEverUsedAtCentreByCategory_returns_courses_no_longer_available_to_centre()
        {
            // Given
            const int centreId   = 101;
            int?      categoryId = null;

            var expectedUnavailableCourse = new Course
            {
                CustomisationId   = 18438,
                CentreId          = 101,
                ApplicationId     = 301,
                ApplicationName   = "5 Jan Test",
                CustomisationName = "New",
                Active            = true,
            };

            // When
            var everUsedResult = courseDataService.GetCoursesEverUsedAtCentreByCategory(centreId, categoryId).ToList();

            // Then
            everUsedResult.Should().ContainEquivalentOf(expectedUnavailableCourse);
        }