public BlockUsersRequestHandler(Request request, ClientConnection clientConnection, INodeNoticeService nodeNoticeService, IUpdateUsersService updateUsersService)
 {
     this.request            = (BlockUsersRequest)request;
     this.clientConnection   = clientConnection;
     this.nodeNoticeService  = nodeNoticeService;
     this.updateUsersService = updateUsersService;
 }
Esempio n. 2
0
        public UpdateUsersTests()
        {
            var testsData = TestsData.Create("updateUsersTests");

            fillTestDbHelper   = testsData.FillTestDbHelper;
            updateUsersService = testsData.AppServiceProvider.UpdateUsersService;
            loadUsersService   = testsData.AppServiceProvider.LoadUsersService;
        }
Esempio n. 3
0
 public void Setup()
 {
     // arrange
     _mockDbSetUser        = DataBaseMockingHelpers.GetMockDbSetUser();
     _mockDbSetTransaction = DataBaseMockingHelpers.GetMockDbSetTransaction();
     _mockcivMoneyContext  = DataBaseMockingHelpers.GetMockCivMoneyContext(_mockDbSetTransaction, _mockDbSetUser);
     _updateUsersService   =
         new UpdateUsers(DataBaseMockingHelpers.GetMockCivMoneyContextFactoryObject(_mockcivMoneyContext.Object));
 }
 public ChangeNodeOperationsService(IAppServiceProvider appServiceProvider, IDbContextFactory <MessengerDbContext> contextFactory)
 {
     createChatsService    = appServiceProvider.CreateChatsService;
     createMessagesService = appServiceProvider.CreateMessagesService;
     updateUsersService    = appServiceProvider.UpdateUsersService;
     createChannelsService = appServiceProvider.CreateChannelsService;
     contactsService       = appServiceProvider.ContactsService;
     groupsService         = appServiceProvider.GroupsService;
     favoritesService      = appServiceProvider.FavoritesService;
     this.contextFactory   = contextFactory;
 }
 public VerificationUserRequestHandler(
     Request request,
     ClientConnection clientConnection,
     ILoadUsersService loadUsersService,
     IUpdateUsersService updateUsersService,
     IVerificationCodesService verificationCodesService,
     ISmsService smsService)
 {
     this.request                  = (VerificationUserRequest)request;
     this.clientConnection         = clientConnection;
     this.loadUsersService         = loadUsersService;
     this.updateUsersService       = updateUsersService;
     this.verificationCodesService = verificationCodesService;
     this.smsService               = smsService;
 }
Esempio n. 6
0
 public UsersController(
     IConnectionsService connectionsService,
     INodeNoticeService nodeNoticeService,
     ILoadUsersService loadUsersService,
     ICreateUsersService createUsersService,
     IUpdateUsersService updateUsersService,
     IQRCodesService codesService)
 {
     _connectionsService = connectionsService;
     _nodeNoticeService  = nodeNoticeService;
     _loadUsersService   = loadUsersService;
     _createUsersService = createUsersService;
     _updateUsersService = updateUsersService;
     _qrCodeService      = codesService;
 }
Esempio n. 7
0
 public ChangeEmailOrPhoneRequestHandler(
     Request request,
     ClientConnection clientConnection,
     IUpdateUsersService updateUsersService,
     IVerificationCodesService verificationCodesService,
     ILoadUsersService loadUsersService)
 {
     this.request                  = (ChangeEmailOrPhoneRequest)request;
     this.clientConnection         = clientConnection;
     this.updateUsersService       = updateUsersService;
     this.verificationCodesService = verificationCodesService;
     isPhoneEditing                = ValidationHelper.IsPhoneNumberValid(this.request.Value);
     isEmailEditing                = ValidationHelper.IsEmailValid(this.request.Value);
     this.loadUsersService         = loadUsersService;
 }
 public UserMigrationController(
     INodeNoticeService nodeNoticeService,
     IConnectionsService connectionsService,
     INoticeService noticeService,
     IChangeNodeOperationsService changeNodeOperationsService,
     ILoadUsersService loadUsersService,
     IUpdateUsersService updateUsersService,
     IDeleteUsersService deleteUsersService,
     INodeRequestSender nodeRequestSender)
 {
     this.nodeNoticeService           = nodeNoticeService;
     this.connectionsService          = connectionsService;
     this.noticeService               = noticeService;
     this.changeNodeOperationsService = changeNodeOperationsService;
     this.loadUsersService            = loadUsersService;
     this.updateUsersService          = updateUsersService;
     this.deleteUsersService          = deleteUsersService;
     this.nodeRequestSender           = nodeRequestSender;
 }
Esempio n. 9
0
 public UsersController(ILoadUsersService loadUsersService, IUpdateUsersService updateUsersService, IConnectionsService connectionsService)
 {
     _loadUsersService   = loadUsersService;
     _updateUsersService = updateUsersService;
     _connectionsService = connectionsService;
 }
 public UsersRemovedFromUserBlacklistNoticeHandler(NodeNotice notice, NodeConnection current, IUpdateUsersService updateUsersService)
 {
     this.notice             = (UsersRemovedFromUserBlacklistNodeNotice)notice;
     this.current            = current;
     this.updateUsersService = updateUsersService;
 }
 public UserNodeChangedNodeNoticeHandler(NodeNotice notice, NodeConnection current, IUpdateUsersService updateUsersService)
 {
     this.notice             = (UserNodeChangedNodeNotice)notice;
     this.current            = current;
     this.updateUsersService = updateUsersService;
 }