public AddUserController( IAddUserService addUserService, IGetUserService getUserService) { _addUserService = addUserService; _getUserService = getUserService; }
public UsersController(IUnitOfWork unitOfWork, IAddUserService addUserService, IEditUserService editUserService, UserManager <User> userManager, IHttpContextAccessor httpContextAccessor) { this.unitOfWork = unitOfWork; this.addUserService = addUserService; this.editUserService = editUserService; caller = httpContextAccessor.HttpContext.User; }
public UserController(IUserDataService userDataService, IManageUserService manageUserService, IAddUserService addUserService, ISessionService sessionService) { _userDataService = userDataService; _manageUserService = manageUserService; _addUserService = addUserService; _sessionService = sessionService; }
public AuthenticationController(UserManager <ApplicationUser> userManager, RoleManager <IdentityRole> roleManager, IConfiguration configuration, IInviteCodeService inviteCodeService, IAddUserService addUserService, INotificationMail notificationService) { _configuration = configuration; _roleManager = roleManager; _userManager = userManager; _inviteCodeService = inviteCodeService; _addUserService = addUserService; _notificationService = notificationService; }
public RegisterUserWindowViewModel() { _phoneNumbers = new ObservableCollection <string>(); _listOfUserAddresses = new ObservableCollection <UserAddress>(); _phoneNumbersTypeAndPhoneNumber = new Dictionary <string, string>(); _addUserService = ServiceLocator.Instance.AddUserService; _userService = ServiceLocator.Instance.UserService; RegisterMessages(); }
public AuthenticationController(UserManager <ApplicationUser> userManager, RoleManager <IdentityRole> roleManager, IConfiguration configuration, IInviteCodeService inviteCodeService, IAddUserService addUserService, IPrisonService prisonService, IUserPermissionsService userPermissionsService) { _configuration = configuration; _roleManager = roleManager; _userManager = userManager; _inviteCodeService = inviteCodeService; _addUserService = addUserService; _prisonService = prisonService; _userPermissionsService = userPermissionsService; }
public AccountController(ILoginService loginService, IEmailService emailService, IAddUserService addUserService, ICredentialsService credentialsService, IOptionsSnapshot <IdentityUIEndpoints> identityManagmentEndpoints) { _loginService = loginService; _emailService = emailService; _addUserService = addUserService; _credentialsService = credentialsService; _identityManagementEndpoints = identityManagmentEndpoints.Value; }
public UserController( IAddUserService addUserService, IUpdateUserService updateUserService, IDeleteUserService deleteUserService, IGetUserService getUserService) { _addUserService = addUserService; _updateUserService = updateUserService; _deleteUserService = deleteUserService; _getUserService = getUserService; }
public AccountController(ILoginService loginService, IEmailConfirmationService emailConfirmationService, IAddUserService addUserService, ICredentialsService credentialsService, IAccountDataService accountDataService, ITwoFactorAuthService twoFactorAuthService, IOptionsSnapshot <IdentityUIEndpoints> identityUIEndpoints) { _loginService = loginService; _emailConfirmationService = emailConfirmationService; _addUserService = addUserService; _credentialsService = credentialsService; _accountDataService = accountDataService; _twoFactorAuthService = twoFactorAuthService; _identityUIEndpoints = identityUIEndpoints.Value; }
public static void EnterMethod(int callsnumber) { for (int i = 0; i < callsnumber; i++) { int num = int.Parse(Thread.CurrentThread.Name.Substring(7)); if (num % 2 == 0) { try { IAddUserService sus = ServiceFactoryCreator.CreateServicesFactory().CreateUserClient(); Test test = new Test(); test.Letter = ""; string hash = Hashhelper.GetProperty(test); test.HashCode = Hashhelper.GetMD5(hash); sus.Search(test); } catch (Exception ex) { log.ErrorFormat("Search(): {0}", ex.Message); throw ex; } } else { try { IAddUserService addu = ServiceFactoryCreator.CreateServicesFactory().CreateUserClient(); User user = new User(); user.UserName = RandomString(8); user.Name = RandomString(6); user.SurName = RandomString(8); user.UserPassword = RandomString(9); user.E_Mail = RandomString(4) + "@" + RandomString(8); string hash = Hashhelper.GetProperty(user); user.HashCode = Hashhelper.GetMD5(hash); addu.AddUser(user); } catch (Exception ex) { log.ErrorFormat("Search(): {0}", ex.Message); throw ex; } } } s.WaitOne(); MessageBox.Show("End of test tool!"); log.DebugFormat("Number of calls was: {0}", callsnumber); Environment.Exit(Environment.ExitCode); s.Release(); }
public RealController([FromServices] IQuotationFiveService quotations, ITimerService Timer, IUserService userService, IAddUserService addUserService, NotificationsMessageHandler notificationsService ) { QuotationsFive = quotations; timer = Timer; UserService = userService; NotificationsService = notificationsService; AddUserService = addUserService; bool work = false; }
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); }
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>(); }
private void button2_Click(object sender, EventArgs e) { IAddUserService adduser = ServiceFactoryCreator.CreateServicesFactory().CreateUserClient(); User user = new User(); user.UserName = textBox1.Text; user.Name = textBox2.Text; user.SurName = textBox3.Text; user.UserPassword = textBox5.Text; user.E_Mail = textBox4.Text; string hash = Hashhelper.GetProperty(user); user.HashCode = Hashhelper.GetMD5(hash); adduser.AddUser(user); }
private void button1_Click(object sender, EventArgs e) { try { IAddUserService sus = ServiceFactoryCreator.CreateServicesFactory().CreateUserClient(); Test test = new Test(); test.Letter = textBox1.Text; string hash = Hashhelper.GetProperty(test); test.HashCode = Hashhelper.GetMD5(hash); //test.HashCode = ""; dataGridView1.DataSource = sus.Search(test); } catch (Exception ex) { throw ex; } }
protected void Button1_Click(object sender, EventArgs e) { IAddUserService adduser = ServiceFactoryCreator.CreateServicesFactory().CreateUserClient(); User user = new User(); user.UserName = TextBox1.Text; user.Name = TextBox2.Text; user.SurName = TextBox3.Text; user.UserPassword = TextBox5.Text; user.E_Mail = TextBox4.Text; string hash = Hashhelper.GetProperty(user); user.HashCode = Hashhelper.GetMD5(hash); adduser.AddUser(user); Response.Write("User is added!"); }
public GroupRegistrationService( IBaseDAO <RoleEntity> roleDAO, IGroupService groupService, IGroupUserService groupUserService, IAddUserService addUserService, IValidator <RegisterGroupModel> registerGroupValidator, ILogger <GroupRegistrationService> logger) { _roleDAO = roleDAO; _groupService = groupService; _groupUserService = groupUserService; _addUserService = addUserService; _registerGroupValidator = registerGroupValidator; _logger = logger; }
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; }
private void InitizalizeAddLogic() { _addUserRule = new AddUserRule(); _addUserLogic = new AddUserLogic(_addUserRule); _addUserService = new AddUserService(_uow, _userRepository, _addUserLogic); }