public StudentWriterService(IStudentRepository studentRepository, IUniversityRepository universityRepository, ILogger logger, IStudentFactory studentFactory) { _studentRepository = studentRepository; _universityRepository = universityRepository; _logger = logger; _studentFactory = studentFactory; }
public CreateStudentCommandHandler( IStudentFactory StudentFactory, IStudentDomainRepository StudentRepository) { _StudentFactory = StudentFactory; _StudentRepository = StudentRepository; }
public CreateStudentCommand(IStudentFactory studentFactory) { if (studentFactory == null) { throw new ArgumentNullException(nameof(studentFactory)); } this.studentFactory = studentFactory; }
public CommandFactory(IStudentFactory studentFactory, ITeacherFactory teacherFactory) { commands = new Dictionary <string, Func <ICommand> > { { "CreateStudent", () => new CreateStudentCommand(studentFactory) }, { "CreateTeacher", () => new CreateTeacherCommand(teacherFactory) }, { "RemoveStudent", () => new RemoveStudentCommand() }, { "RemoveTeacher", () => new RemoveTeacherCommand() }, { "StudentListMarks", () => new StudentListMarksCommand() }, { "TeacherAddMark", () => new TeacherAddMarkCommand() } }; }
public InteractionManager(ILogger logger) { this.trainers = new HashSet<ITrainer>(); this.students = new HashSet<IStudent>(); this.studentFactory = new StudentFactory(); this.trainerFactory = new TrainerFactory(); this.petFactory = new PetFactory(); this.logger = logger; GeneratePreviousYearTrainers(); }
public InteractionManager(ILogger logger) { this.trainers = new HashSet <ITrainer>(); this.students = new HashSet <IStudent>(); this.studentFactory = new StudentFactory(); this.trainerFactory = new TrainerFactory(); this.petFactory = new PetFactory(); this.logger = logger; GeneratePreviousYearTrainers(); }
public CreateStudentCommand(IStudentFactory factory, ISchoolService service) { if (factory == null) { throw new ArgumentNullException("factory cannot be null"); } if (service == null) { throw new ArgumentNullException("service cannot be null"); } this.factory = factory; this.schoolService = service; }
public CreateStudentCommand(IStudentFactory studentFactory, IStudentData studentData, IIdentityProvider idProvider) { if (studentFactory == null) { throw new ArgumentNullException(nameof(studentFactory)); } if (idProvider == null) { throw new ArgumentNullException(nameof(idProvider)); } this.idProvider = idProvider; this.studentFactory = studentFactory; this.studentData = studentData; }
public CreateStudentCommand(IStudentFactory factory, IStorage studentsData) { this.factory = factory; this.studentsData = studentsData; }
public CreateStudentCommand(IStudentFactory studentFactory) { this.studentFactory = studentFactory; }
public CreateStudentCommand(IRepository <IStudent> studentsRepository, IStudentFactory studentFactory) : base(studentsRepository) { this.ValidateNonNullParameters(studentFactory); this.studentFactory = studentFactory; }
public CreateStudentCommand(IStudentFactory studentFactory, IAddStudent addStudent) { this.studentFactory = studentFactory; this.addStudent = addStudent; }
public CreateStudentCommand(IStudentFactory studentFactory, ISchoolSystemData schoolSystemData) { this.schoolSystemData = schoolSystemData ?? throw new ArgumentNullException("School system data cannot be null!"); this.studentFactory = studentFactory ?? throw new ArgumentNullException("Student factory cannot be null!"); this.currentStudentId = 0; }
public CreateStudentHandler(ICommandFactory commandFactory, IStudentFactory studentFactory) : base(commandFactory) { this.studentFactory = studentFactory; }
public CreateStudentCommand(IStudentFactory factory, IStudentService service) { this.factory = factory ?? throw new ArgumentNullException("factory cannot be null"); this.service = service ?? throw new ArgumentNullException("service cannot be null"); }