public UpdateUserController(
     IUpdateUserService updateUserService,
     IGetUserService getUserService)
 {
     _updateUserService = updateUserService;
     _getUserService    = getUserService;
 }
Example #2
0
 public UserController(
     IAddUserService addUserService,
     IUpdateUserService updateUserService,
     IDeleteUserService deleteUserService,
     IGetUserService getUserService)
 {
     _addUserService    = addUserService;
     _updateUserService = updateUserService;
     _deleteUserService = deleteUserService;
     _getUserService    = getUserService;
 }
 public AccountController(ILogger <AccountController> logger, ILoginUserService loginUserService, ILogoutUserService logoutUserService, IRegisterUserService registerUserService, IConfirmAccountService confirmAccountService, ISendEmailConfirmationService sendEmailConfirmationService, IListUserService listUserService, IUpdateUserService updateUserService, IResetPasswordService resetPasswordService)
 {
     _logger                       = logger;
     _listUserService              = listUserService;
     _loginUserService             = loginUserService;
     _logoutUserService            = logoutUserService;
     _updateUserService            = updateUserService;
     _registerUserService          = registerUserService;
     _confirmAccountService        = confirmAccountService;
     _sendEmailConfirmationService = sendEmailConfirmationService;
     _resetPasswordService         = resetPasswordService;
 }
Example #4
0
 public UserController(ICreateUserService createUserService, IGetUsersService getUsersService,
                       IUpdateUserService updateUserService, IChangePasswordService changePasswordService,
                       IGetRolesService getRolesService, IDeleteUserService deleteUserService,
                       IGetPermissionsService getPermissionsService, IPermissionVerificationService permissionVerificationService)
 {
     this.createUserService             = createUserService;
     this.getUsersService               = getUsersService;
     this.updateUserService             = updateUserService;
     this.changePasswordService         = changePasswordService;
     this.getRolesService               = getRolesService;
     this.deleteUserService             = deleteUserService;
     this.getPermissionsService         = getPermissionsService;
     this.permissionVerificationService = permissionVerificationService;
 }
Example #5
0
 public void Initialize()
 {
     _dataFactory       = MockRepository.GenerateStub <IDataFactory>();
     _uow               = MockRepository.GenerateStub <IUnitOfWork>();
     _userRepository    = MockRepository.GenerateStub <IUserRepository>();
     _addUserRule       = MockRepository.GenerateStub <IAddUserRule>();
     _addUserLogic      = MockRepository.GenerateStub <IAddUserLogic>();
     _addUserService    = MockRepository.GenerateStub <IAddUserService>();
     _getUserLogic      = MockRepository.GenerateStub <IGetUserLogic>();
     _getUserService    = MockRepository.GenerateStub <IGetUserService>();
     _updateUserRule    = MockRepository.GenerateStub <IUpdateUserRule>();
     _updateUserLogic   = MockRepository.GenerateStub <IUpdateUserLogic>();
     _updateUserService = MockRepository.GenerateStub <IUpdateUserService>();
     _deleteUserLogic   = MockRepository.GenerateStub <IDeleteUserLogic>();
     _deleteUserService = MockRepository.GenerateStub <IDeleteUserService>();
 }
Example #6
0
 public void Initialize()
 {
     _dataFactory       = new DataFactory();
     _uow               = new UnitOfWork(_dataFactory);
     _userRepository    = new UserRepository(_dataFactory);
     _addUserRule       = new AddUserRule();
     _addUserLogic      = new AddUserLogic(_addUserRule);
     _addUserService    = new AddUserService(_uow, _userRepository, _addUserLogic);
     _getUserLogic      = new GetUserLogic();
     _getUserService    = new GetUserService(_userRepository, _getUserLogic);
     _updateUserRule    = new UpdateUserRule();
     _updateUserLogic   = new UpdateUserLogic(_updateUserRule, _getUserLogic);
     _updateUserService = new UpdateUserService(_uow, _userRepository, _updateUserLogic);
     _deleteUserLogic   = new DeleteUserLogic(_getUserLogic);
     _deleteUserService = new DeleteUserService(_uow, _userRepository, _deleteUserLogic);
 }
Example #7
0
 public UserController(
     SiteSettings siteSettings,
     IAddUserRoleRelationService addUserRoleRelationService,
     IAddUserService addUserService,
     IDeleteUserRoleRelationService deleteUserRoleRelationService,
     IDeleteUserService deleteUserService,
     IFindUserService findUserService,
     IGetApplicationsService getApplicationsService,
     IGetRolesService getRolesService,
     IGetUsersService getUsersService,
     IUpdateUserService updateUserService)
 {
     _siteSettings = siteSettings;
     _addUserRoleRelationService    = addUserRoleRelationService;
     _addUserService                = addUserService;
     _deleteUserRoleRelationService = deleteUserRoleRelationService;
     _deleteUserService             = deleteUserService;
     _findUserService               = findUserService;
     _getApplicationsService        = getApplicationsService;
     _getRolesService               = getRolesService;
     _getUsersService               = getUsersService;
     _updateUserService             = updateUserService;
 }