Example #1
0
        public CreateTeacherCommand(ITeacherFactory teacherFactory, ITeachersData teachersData, IIdentityProvider idProvider)
        {
            if (teacherFactory == null)
            {
                throw new ArgumentNullException(nameof(teacherFactory));
            }

            if (idProvider == null)
            {
                throw new ArgumentNullException(nameof(idProvider));
            }

            this.idProvider     = idProvider;
            this.teacherFactory = teacherFactory;
            this.teachersData   = teachersData;
        }
Example #2
0
 public RemoveTeacherCommand(ITeachersData teachersData)
 {
     this.teachersData = teachersData;
 }
Example #3
0
 public TeacherAddMarkCommand(IStudentData studentData, ITeachersData teachersData)
 {
     this.studentData  = studentData;
     this.teachersData = teachersData;
 }