Пример #1
0
 public CardLimitController(
     ILogger <CardLimitController> logger,
     ILimitService limit)
 {
     _logger = logger;
     _limit  = limit;
 }
 public LimitServiceTest()
 {
     _companyRepositoryQuery   = Substitute.For <ICompanyQueryRepository>();
     _customerRepositoryQuery  = Substitute.For <ICustomerQueryRepository>();
     _limitUsedQueryRepository = Substitute.For <ILimitUsedQueryRepository>();
     _limitService             = new LimitService(_companyRepositoryQuery, _customerRepositoryQuery, _limitUsedQueryRepository);
 }
 public UserLimitProvider(
     ICustomerService customerService,
     IMoneyService moneyService,
     ILimitService limitService)
 {
     // store these in private fields
 }
Пример #4
0
        public LimitTest(TinyCardFixture fixture)
        {
            _limit = fixture.Scope.ServiceProvider
                     .GetRequiredService <ILimitService>();

            _dbContext = fixture.Scope.ServiceProvider
                         .GetRequiredService <Data.TinyCardDbContext>();
        }
 public LimitPaymentCodeController(ApplicationContext context, IHomePagingService pagingService, ILimitService limitService, IPaymentCodeService paymentCodeService, IValidationService validationService)
 {
     this.context            = context;
     this.pagingService      = pagingService;
     this.limitService       = limitService;
     this.paymentCodeService = paymentCodeService;
     this.validationService  = validationService;
 }
Пример #6
0
        public LimitDetailsView(ILimitService service, LimitModel entity, bool isNew) : base(service, entity, isNew)
        {
            InitializeComponent();

            // set header and commands panel context
            LabelHeader.Content       = ViewHeader;
            CommandsPanel.DataContext = Commands;
        }
Пример #7
0
 public CardTest(CardLimitFixture fixture)
 {
     _cards = fixture.Scope.ServiceProvider
              .GetRequiredService <ICardService>();
     _dbContext = fixture.Scope.ServiceProvider
                  .GetRequiredService <CardDbContext>();
     _limits = fixture.Scope.ServiceProvider
               .GetRequiredService <ILimitService>();
 }
Пример #8
0
        protected override void InitializationComplete()
        {
            // init
            _moneyTransferEventService = ServiceManager.ConfigureService <MoneyTransferEventService>();
            _repayDebtEventService     = ServiceManager.ConfigureService <RepayDebtEventService>();
            _simpleEventService        = ServiceManager.ConfigureService <SimpleEventService>();
            _limitService         = ServiceManager.ConfigureService <LimitService>();
            _recordService        = ServiceManager.ConfigureService <RecordService>();
            _moneyTransferService = ServiceManager.ConfigureService <MoneyTransferService>();

            InitializeViewModel();
            _areLimitsLoaded = false;
        }
Пример #9
0
 public ValidationService(IUserService userService, ITransferService transferService, IAccountService accountService, IStringLocalizer <ValidationService> localizer, IEmployeeService employeeService, ICompanyService companyService, IHostingEnvironment appEnvironment, ILimitService limitService, IExchangeRateService exchangeRateService, IBankService bankService)
 {
     this.userService         = userService;
     this.transferService     = transferService;
     this.accountService      = accountService;
     this.localizer           = localizer;
     this.employeeService     = employeeService;
     this.companyService      = companyService;
     _appEnvironment          = appEnvironment;
     this.limitService        = limitService;
     this.exchangeRateService = exchangeRateService;
     this.bankService         = bankService;
 }
Пример #10
0
 public CalendarDataBuilder(int userId,
                            ITransactionService transactionService,
                            ICurrencyService currencyService,
                            ICurrencyExchangeRateService currencyExchangeRateService,
                            IStorageService storageService,
                            ILimitService limitService,
                            ICategoryService categoryService)
 {
     _userId                      = userId;
     _transactionService          = transactionService;
     _currencyService             = currencyService;
     _currencyExchangeRateService = currencyExchangeRateService;
     _storageService              = storageService;
     _limitService                = limitService;
     _categoryService             = categoryService;
     _data = new CalendarData();
 }
Пример #11
0
 public AuthController(IUserService userService,
                       IEmailService emailService,
                       IWriteWalletService walletService,
                       ISquadService squadService,
                       IOilfieldService oilfieldService,
                       IExtractionService extractionService,
                       IUserInfoService userInfoService,
                       ILimitService limitService)
 {
     _userService       = userService;
     _emailService      = emailService;
     _squadService      = squadService;
     _walletService     = walletService;
     _oilfieldService   = oilfieldService;
     _extractionService = extractionService;
     _userInfoService   = userInfoService;
     _limitService      = limitService;
 }
 public LimitsController(ILimitService limitService, IMediator mediator)
 {
     _limitService = limitService;
     _mediator     = mediator;
 }
 public LimitReserveHandleTest()
 {
     _repository   = Substitute.For <ILimitUsedCommandRepository>();
     _limitService = Substitute.For <ILimitService>();
     _handle       = new LimitReserveHandle(_repository, _limitService);
 }
Пример #14
0
 public CardLimitController(ILogger <CardLimitController> logger, ICardService cards, ILimitService limits)
 {
     _logger = logger;
     _cards  = cards;
     _limits = limits;
 }
Пример #15
0
 public BanlistCardsService(ILimitService limitService, ICardService cardService)
 {
     _limitService = limitService;
     _cardService  = cardService;
 }
 public LimitReserveHandle(ILimitUsedCommandRepository limitUsedCommand, ILimitService limitService)
 {
     _limitUsedCommand = limitUsedCommand;
     _limitService     = limitService;
 }
Пример #17
0
 public LimitController(ILimitService limitService)
 {
     _limitService = limitService;
 }
Пример #18
0
        public void SetUp()
        {
            _limitService = Substitute.For <ILimitService>();

            _sut = new AllLimitsQueryHandler(_limitService);
        }
Пример #19
0
 public AllLimitsQueryHandler(ILimitService limitService)
 {
     _limitService = limitService;
 }