Ejemplo n.º 1
0
        public PhoneBookInstance()
        {
            IAddContactCommand    cnd   = new AddContactCommand();
            IExistContactByNumber exist = new ExistContactByNumber();
            IEditContactCommand   editContactCommand   = new EditContactCommand();
            IExistByIdQuery       existByIdQuery       = new ExistByIdQuery();
            IDeleteContactCommand deleteContactCommand = new DeleteContactCommad();

            _contactQuery = new ContactQuery();

            _addUseCase    = new AddUserUseCase(cnd, exist);
            _deleteUseCase = new DeleteUseCase(existByIdQuery, deleteContactCommand);
            _editUserCase  = new EditUseCase(existByIdQuery, editContactCommand);
        }
Ejemplo n.º 2
0
 public UserController(
     IGetAllUserUseCase getAllUserUseCase,
     IGetOneUserUseCase getOneUserUseCase,
     IAddUserUseCase addUserUseCase,
     IUpdateUserUseCase updateUserUseCase,
     IResetPasswordUseCase resetPasswordUseCase,
     IUserRepository userRepository
     )
 {
     _getAllUserUseCase    = getAllUserUseCase;
     _getOneUserUseCase    = getOneUserUseCase;
     _addUserUseCase       = addUserUseCase;
     _updateUserUseCase    = updateUserUseCase;
     _resetPasswordUseCase = resetPasswordUseCase;
     _userRepository       = userRepository;
 }
Ejemplo n.º 3
0
 public UserController(
     IAddUserUseCase addUserUseCase,
     IRemoveUserUseCase removeUserUseCase,
     IUpdateUserUseCase updateUserUseCase,
     IGetAllUserUseCase getAllUserUseCase,
     IGetByIdUserUseCase getByIdUserUseCase,
     IGetByNameUser getByNameUser,
     ITokenRepository tokenRepository)
 {
     this.addUserUseCase     = addUserUseCase;
     this.removeUserUseCase  = removeUserUseCase;
     this.updateUserUseCase  = updateUserUseCase;
     this.getAllUserUseCase  = getAllUserUseCase;
     this.getByIdUserUseCase = getByIdUserUseCase;
     this.getByNameUser      = getByNameUser;
     this.tokenRepository    = tokenRepository;
 }
 public UserManagementController(IAddUserUseCase addUserUseCase, IModifyUserRolesUseCase modifyUserRoles)
 {
     _addUser         = addUserUseCase;
     _modifyUserRoles = modifyUserRoles;
 }