Beispiel #1
0
        public void UpdateLearningPathwayDefaultsForCourse_calls_data_service()
        {
            // Given
            A.CallTo(
                () => courseDataService.UpdateLearningPathwayDefaultsForCourse(
                    A <int> ._,
                    A <int> ._,
                    A <int> ._,
                    A <bool> ._,
                    A <bool> ._,
                    A <int> ._,
                    A <int> ._,
                    A <bool> ._
                    )
                ).DoesNothing();

            // When
            courseService.UpdateLearningPathwayDefaultsForCourse(1, 6, 12, true, true);

            // Then
            A.CallTo(() => courseDataService.UpdateLearningPathwayDefaultsForCourse(1, 6, 12, true, true, 0, 0, false))
            .MustHaveHappened();
        }
 public void UpdateLearningPathwayDefaultsForCourse(
     int customisationId,
     int completeWithinMonths,
     int validityMonths,
     bool mandatory,
     bool autoRefresh,
     int refreshToCustomisationId    = 0,
     int autoRefreshMonths           = 0,
     bool applyLpDefaultsToSelfEnrol = false
     )
 {
     courseDataService.UpdateLearningPathwayDefaultsForCourse(
         customisationId,
         completeWithinMonths,
         validityMonths,
         mandatory,
         autoRefresh,
         refreshToCustomisationId,
         autoRefreshMonths,
         applyLpDefaultsToSelfEnrol
         );
 }