Exemplo n.º 1
0
        private void AddNewLearningDelivery()
        {
            LearningDelivery ld = _learner.CreateLearningDelivery();

            ld.IsSelected = true;
            LearningDeliveryItemsCV.MoveCurrentTo(ld);
            LearningDeliveryItemsCV.Refresh();
            OnPropertyChanged("LearningDeliveryItemsCV");
        }
Exemplo n.º 2
0
        public void Learners_LearningDelivery_LearningDeliveryHE_When_YEARSTU_IsNotBlank_ShouldNotGiveValidationError()
        {
            // Arrange
            Learner learner = message.CreateLearner();

            learner.FamilyName = "familyName";
            learner.GivenNames = "GivenName";

            // Act
            var learningDelivery   = learner.CreateLearningDelivery();
            var learningDeliveryHE = learningDelivery.CreateLearningDeliveryHE();

            learningDeliveryHE.YEARSTU = "1"; //any valid value
            var validationMessage = learningDeliveryHE["YEARSTU"];

            // Assert
            Assert.IsTrue(string.IsNullOrEmpty(validationMessage));
        }