public PassportController(
     IEmployeeRepository employeeRepository,
     EmployeeWriteCommand employeeWriteCommand)
 {
     _employeeRepository   = employeeRepository;
     _employeeWriteCommand = employeeWriteCommand;
 }
 public StateRegistrationController(
     IEmployeeRepository employeeRepository,
     EmployeeWriteCommand employeeWriteCommand)
 {
     _employeeRepository   = employeeRepository;
     _employeeWriteCommand = employeeWriteCommand;
 }
        public EmployeeController(
            EmployeeWriteCommand employeeWriteCommand,
            EmployeeReadCommand employeeReadCommand)
        {
            Contract.Argument.IsNotNull(employeeWriteCommand, nameof(employeeWriteCommand));
            Contract.Argument.IsNotNull(employeeReadCommand, nameof(employeeReadCommand));

            _employeeWriteCommand = employeeWriteCommand;
            _employeeReadCommand  = employeeReadCommand;
        }
示例#4
0
        public ContactController(
            IEmployeeRepository employeeRepository,
            EmployeeWriteCommand employeeWriteCommand,
            IReadCommand <EmployeeResult> employeeReadCommand)
        {
            Contract.Argument.IsNotNull(employeeRepository, nameof(employeeRepository));
            Contract.Argument.IsNotNull(employeeWriteCommand, nameof(employeeWriteCommand));
            Contract.Argument.IsNotNull(employeeReadCommand, nameof(employeeReadCommand));

            _employeeRepository   = employeeRepository;
            _employeeWriteCommand = employeeWriteCommand;
            _employeeReadCommand  = employeeReadCommand;
        }