예제 #1
0
 public void Setup()
 {
     // arrange
     _mockDbSetUser        = DataBaseMockingHelpers.GetMockDbSetUser();
     _mockDbSetTransaction = DataBaseMockingHelpers.GetMockDbSetTransaction();
     _mockcivMoneyContext  = DataBaseMockingHelpers.GetMockCivMoneyContext(_mockDbSetTransaction, _mockDbSetUser);
     _usersAccessService   =
         new CreateUsers(DataBaseMockingHelpers.GetMockCivMoneyContextFactoryObject(_mockcivMoneyContext.Object));
 }
예제 #2
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;
 }
예제 #3
0
 public NewUserRequestHandler(
     Request request,
     ClientConnection clientConn,
     INodeNoticeService nodeNoticeService,
     ICreateUsersService createUsersService,
     ITokensService tokensService,
     IVerificationCodesService verificationCodesService,
     ILoadUsersService loadUsersService)
 {
     this.request                  = (NewUserRequest)request;
     this.clientConn               = clientConn;
     this.nodeNoticeService        = nodeNoticeService;
     this.createUsersService       = createUsersService;
     this.tokensService            = tokensService;
     this.verificationCodesService = verificationCodesService;
     this.loadUsersService         = loadUsersService;
 }
예제 #4
0
        public UsersController()
        {
            var civMoneyContextFactory = new CivMoneyContextFactory();

            createUserService = new CreateUsers(civMoneyContextFactory);
        }
예제 #5
0
        public CreateUsersTests()
        {
            var testsData = TestsData.Create(nameof(CreateUsersService));

            createUsersService = testsData.AppServiceProvider.CreateUsersService;
        }