public InstructorAssignment(Instructor teacher, SubjectDelivery subject)
        {
            Instructor = teacher as Teacher;
            Subject = subject;
            Role = InstructorAssignmentRole.All;

        }
Esempio n. 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);
        }
Esempio n. 3
0
		public InstructorAssignment CreateAssignment(Instructor teacher, SubjectDelivery subjectDelivery, InstructorAssignmentRole role) {
			var result = new InstructorAssignment(teacher, subjectDelivery, role);
		    return result;
		}
 public AssessmentEvent(AssessmentType type, string location, SubjectDelivery subject, DateTime startDate, DateTime endDate)
     : this(type, location, subject)
 {
     TimePeriod = new TimePeriod(startDate, endDate);
 }
 public AssessmentEvent(AssessmentType type, string location, SubjectDelivery subject, DateTime briefingDate)
     : this(type, location, subject)
 {
     BriefingDate = briefingDate;
 }
 public AssessmentEvent(AssessmentType type, string location, SubjectDelivery subject)
 {
     Type = type;
     Location = location;
     Subject = subject;
 }
 public InstructorAssignment(Instructor teacher, SubjectDelivery subject, InstructorAssignmentRole role)
     : this(teacher, subject)
 {
     Role = role;
 }
Esempio n. 8
0
        public InstructorAssignment CreateAssignment(Instructor teacher, SubjectDelivery subjectDelivery, InstructorAssignmentRole role)
        {
            var result = new InstructorAssignment(teacher, subjectDelivery, role);

            return(result);
        }
Esempio n. 9
0
 public AssessmentEvent(AssessmentType type, string location, SubjectDelivery subject, DateTime startDate, DateTime endDate)
     : this(type, location, subject)
 {
     TimePeriod = new TimePeriod(startDate, endDate);
 }
Esempio n. 10
0
 public AssessmentEvent(AssessmentType type, string location, SubjectDelivery subject, DateTime briefingDate)
     : this(type, location, subject)
 {
     BriefingDate = briefingDate;
 }
Esempio n. 11
0
 public AssessmentEvent(AssessmentType type, string location, SubjectDelivery subject)
 {
     Type     = type;
     Location = location;
     Subject  = subject;
 }
Esempio n. 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;
        }
Esempio n. 13
0
 public InstructorAssignment(Instructor teacher, SubjectDelivery subject, InstructorAssignmentRole role)
     : this(teacher, subject)
 {
     Role = role;
 }
Esempio n. 14
0
 public InstructorAssignment(Instructor teacher, SubjectDelivery subject)
 {
     Instructor = teacher as Teacher;
     Subject    = subject;
     Role       = InstructorAssignmentRole.All;
 }