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); }
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); }