コード例 #1
0
        public InstructorAssignment(Instructor teacher, SubjectDelivery subject)
        {
            Instructor = teacher as Teacher;
            Subject = subject;
            Role = InstructorAssignmentRole.All;

        }
コード例 #2
0
        public SubjectDelivery AddSubjectDelivery(String name, string description, CourseDelivery courseDelivery)
        {
            if (this.Subjects.Select(s => s.Name).Contains(name, StringComparer.OrdinalIgnoreCase))
            {
                throw new InvalidOperationException("Subject with the same name already exists");
            }

            var subject = new SubjectDelivery(name, description, courseDelivery);

            Subjects.Add(subject);
            return(subject);
        }
コード例 #3
0
ファイル: Teacher.cs プロジェクト: sasa333/course-fantastic
		public InstructorAssignment CreateAssignment(Instructor teacher, SubjectDelivery subjectDelivery, InstructorAssignmentRole role) {
			var result = new InstructorAssignment(teacher, subjectDelivery, role);
		    return result;
		}
コード例 #4
0
 public AssessmentEvent(AssessmentType type, string location, SubjectDelivery subject, DateTime startDate, DateTime endDate)
     : this(type, location, subject)
 {
     TimePeriod = new TimePeriod(startDate, endDate);
 }
コード例 #5
0
 public AssessmentEvent(AssessmentType type, string location, SubjectDelivery subject, DateTime briefingDate)
     : this(type, location, subject)
 {
     BriefingDate = briefingDate;
 }
コード例 #6
0
 public AssessmentEvent(AssessmentType type, string location, SubjectDelivery subject)
 {
     Type = type;
     Location = location;
     Subject = subject;
 }
コード例 #7
0
 public InstructorAssignment(Instructor teacher, SubjectDelivery subject, InstructorAssignmentRole role)
     : this(teacher, subject)
 {
     Role = role;
 }
コード例 #8
0
ファイル: Teacher.cs プロジェクト: sasa333/course-fantastic
        public InstructorAssignment CreateAssignment(Instructor teacher, SubjectDelivery subjectDelivery, InstructorAssignmentRole role)
        {
            var result = new InstructorAssignment(teacher, subjectDelivery, role);

            return(result);
        }
コード例 #9
0
 public AssessmentEvent(AssessmentType type, string location, SubjectDelivery subject, DateTime startDate, DateTime endDate)
     : this(type, location, subject)
 {
     TimePeriod = new TimePeriod(startDate, endDate);
 }
コード例 #10
0
 public AssessmentEvent(AssessmentType type, string location, SubjectDelivery subject, DateTime briefingDate)
     : this(type, location, subject)
 {
     BriefingDate = briefingDate;
 }
コード例 #11
0
 public AssessmentEvent(AssessmentType type, string location, SubjectDelivery subject)
 {
     Type     = type;
     Location = location;
     Subject  = subject;
 }
コード例 #12
0
        public SubjectDelivery AddSubjectDelivery(String name, string description, CourseDelivery courseDelivery)
        {
            if (this.Subjects.Select(s => s.Name).Contains(name, StringComparer.OrdinalIgnoreCase))
            {
                throw new InvalidOperationException("Subject with the same name already exists");
            }

            var subject = new SubjectDelivery(name, description, courseDelivery);
            Subjects.Add(subject);
            return subject;
        }
コード例 #13
0
 public InstructorAssignment(Instructor teacher, SubjectDelivery subject, InstructorAssignmentRole role)
     : this(teacher, subject)
 {
     Role = role;
 }
コード例 #14
0
 public InstructorAssignment(Instructor teacher, SubjectDelivery subject)
 {
     Instructor = teacher as Teacher;
     Subject    = subject;
     Role       = InstructorAssignmentRole.All;
 }