public CommandFactory(ISchoolRegister register, ISchoolSystemFactory factory)
 {
     this.register = register;
     this.factory  = factory;
 }
예제 #2
0
 public Teacher(string firstName, string lastName, Subject subject, ISchoolSystemFactory schoolFactory)
     : base(firstName, lastName)
 {
     this.schoolFactory = schoolFactory;
     this.Subject       = subject;
 }
 public CreateStudentCommand(ISchoolSystemFactory schoolFactory, ISchoolRegister schoolRegister)
 {
     this.schoolFactory  = schoolFactory;
     this.schoolRegister = schoolRegister;
 }