예제 #1
0
        public void UpdateCourse(string name, bool active, CourseType courseType)
        {
            Name        = name;
            Active      = active;
            CourseType  = courseType;
            UpdatedDate = DateTime.Now;

            var fiscal = new CourseValidValidation();

            ValidationResult = fiscal.Validate(this);
        }
예제 #2
0
        public Course(string name, bool active, CourseType courseType)
        {
            CourseId     = Guid.NewGuid();
            Name         = name;
            CourseType   = courseType;
            Active       = active;
            RegisterDate = DateTime.Now;

            var fiscal = new CourseForRegistrationValidation();

            ValidationResult = fiscal.Validate(this);
        }