Ejemplo n.º 1
0
 public ProfileController(
     IReadCommand <ProfileResult> profileReadCommand,
     EmployeeReadCommand employeeReadCommand,
     ProfileWriteCommand profileWriteCommand)
 {
     _profileReadCommand  = profileReadCommand;
     _employeeReadCommand = employeeReadCommand;
     _profileWriteCommand = profileWriteCommand;
 }
Ejemplo n.º 2
0
 public ProfileController(
     IReadCommand <ProfileResult> profileReadCommand,
     EmployeeReadCommand employeeReadCommand,
     ProfileWriteCommand profileWriteCommand,
     IInvitationRepository invitationRepositore,
     IMembershipRepository membershipRepository,
     IPublicationRepository publicationRepository,
     IDepartureRepository departureRepository)
 {
     _profileReadCommand    = profileReadCommand;
     _employeeReadCommand   = employeeReadCommand;
     _profileWriteCommand   = profileWriteCommand;
     _invitationRepositore  = invitationRepositore;
     _membershipRepository  = membershipRepository;
     _publicationRepository = publicationRepository;
     _departureRepository   = departureRepository;
 }
Ejemplo n.º 3
0
        public ProfileController(
            IEmployeeRepository employeeRepository,
            IReadCommand <ProfileResult> profileReadCommand,
            IReadCommand <EmployeeResult> employeeReadCommand,
            UserReadCommand userReadCommand,
            ProfileWriteCommand profileWriteCommand)
        {
            Contract.Argument.IsNotNull(employeeRepository, nameof(employeeRepository));
            Contract.Argument.IsNotNull(profileReadCommand, nameof(profileReadCommand));
            Contract.Argument.IsNotNull(employeeReadCommand, nameof(employeeReadCommand));
            Contract.Argument.IsNotNull(userReadCommand, nameof(userReadCommand));
            Contract.Argument.IsNotNull(profileWriteCommand, nameof(profileWriteCommand));

            _employeeRepository  = employeeRepository;
            _profileReadCommand  = profileReadCommand;
            _employeeReadCommand = employeeReadCommand;
            _userReadCommand     = userReadCommand;
            _profileWriteCommand = profileWriteCommand;
        }