Exemplo n.º 1
0
        public void ThenTheCourseEffectiveDatesAreUsedToDetermineTheStatus(DateTime?courseStart, DateTime?courseEnd, DateTime effectiveDate, TrainingProgrammeStatus expectStatus)
        {
            //Arrange
            var course = new TrainingProgramme {
                EffectiveFrom = courseStart, EffectiveTo = courseEnd
            };

            //Act
            var result = course.GetStatusOn(effectiveDate);

            //Assert
            Assert.AreEqual(expectStatus, result);
        }
        public void ThenTheCourseEffectiveDatesAreUsedToDetermineTheStatus(DateTime?courseStart, DateTime?courseEnd, DateTime effectiveDate, TrainingProgrammeStatus expectStatus)
        {
            //Arrange
            var course = new CommitmentsV2.Domain.Entities.TrainingProgramme("1", "test", ProgrammeType.Standard, courseStart, courseEnd);

            //Act
            var result = course.GetStatusOn(effectiveDate);

            //Assert
            Assert.AreEqual(expectStatus, result);
        }