Ejemplo n.º 1
0
 public CloudBankingController(IBankingRepository bankingRepository, IBankingService bankingService, ICalculator calculator, IOptions <AppParameters> opAppParameters)
 {
     _bankingRepository = bankingRepository;
     _bankingService    = bankingService;
     _calculator        = calculator;
     _appParameters     = opAppParameters.Value;
 }
Ejemplo n.º 2
0
 public ShoppingCart(string username, IUserRepository userRepository, IBankingService bankingService)
 {
     Orders          = new Dictionary <Product, int>();
     _userRepository = userRepository;
     _bankingService = bankingService;
     Owner           = username;
 }
Ejemplo n.º 3
0
 public BettingService(IBetRepository betRepository, IWagerRepository wagerRepository,
                       IBankingService bankingService)
 {
     _betRepository   = betRepository;
     _wagerRepository = wagerRepository;
     _bankingService  = bankingService;
 }
Ejemplo n.º 4
0
 public BankingModule(IBankingService bankingService, IInvestingService investingService,
                      IOptions <BotOptions> options)
 {
     _bankingService   = bankingService;
     _investingService = investingService;
     _options          = options.Value;
 }
Ejemplo n.º 5
0
 public BookingCancelController(
     dbwebContext _ctx,
     IBankingService ibankingService
     )
 {
     ctx = _ctx;
 }
Ejemplo n.º 6
0
        /// <summary>
        ///     Initializes a new instance of the <see cref="PinViewModel" /> class.
        /// </summary>
        /// <param name="regionManager">The region manager.</param>
        /// <param name="provider">The provider.</param>
        /// <param name="service">The service.</param>
        /// <param name="dispatcherAccessor">The dispatcher accessor.</param>
        public PinViewModel(IRegionManager regionManager, ICredentialsProvider provider, IBankingService service, IDispatcherAccessor dispatcherAccessor)
        {
            if (regionManager == null)
            {
                throw new ArgumentNullException(nameof(regionManager));
            }
            if (provider == null)
            {
                throw new ArgumentNullException(nameof(provider));
            }
            if (service == null)
            {
                throw new ArgumentNullException(nameof(service));
            }
            if (dispatcherAccessor == null)
            {
                throw new ArgumentNullException(nameof(dispatcherAccessor));
            }

            _regionManager      = regionManager;
            _provider           = provider;
            _service            = service;
            _dispatcherAccessor = dispatcherAccessor;
            OkCommand           = new DelegateCommand <IWrappedValue <string> >(CheckPin);
        }
Ejemplo n.º 7
0
 public TransferService(HttpClient apiClient,
                        IHttpClientFactory httpClientFactory,
                        IBankingService bankingService)
 {
     _apiClient         = apiClient;
     _httpClientFactory = httpClientFactory;
     _bankingService    = bankingService;
 }
Ejemplo n.º 8
0
 public BankController(
     dbwebContext _ctx,
     IBankingService ibankingService
     )
 {
     ctx             = _ctx;
     iBankingService = ibankingService;
 }
Ejemplo n.º 9
0
 public GoalService(IGoalTypeRepository goalTypeRepository, IUserGoalRepository userGoalRepository, IEventRepository eventRepository, IGoalSubscriberRepository goalSubscriberRepository, IEventService eventService, IBankingService bankingService)
 {
     _goalTypeRepository       = goalTypeRepository;
     _userGoalRepository       = userGoalRepository;
     _eventRepository          = eventRepository;
     _goalSubscriberRepository = goalSubscriberRepository;
     _eventService             = eventService;
     _bankingService           = bankingService;
 }
Ejemplo n.º 10
0
 public MainWindow()
 {
     InitializeComponent();
     _bankingService     = IocConfiguration.Initialize().Resolve <IBankingService>();
     _tblUpdate          = IocConfiguration.Initialize().Resolve <IUpdateDbTables>();
     _transactionService = IocConfiguration.Initialize().Resolve <ITransactionService>();
     _objectConversions  = IocConfiguration.Initialize().Resolve <ObjectConversions>();
     _initiateDataUpdate = IocConfiguration.Initialize().Resolve <InitiateDataUpdate>();
 }
 public SendPaymentRequestHandler(
     IBankingService bankingService,
     IMapper mapper,
     IPaymentContext context)
 {
     _bankingService = bankingService ?? throw new ArgumentNullException(nameof(bankingService));
     _mapper         = mapper ?? throw new ArgumentNullException(nameof(mapper));
     _context        = context ?? throw new ArgumentNullException(nameof(context));
 }
 public CreateAccountCommandHandler(
     ILogger <CreateAccountCommandHandler> logger,
     IAccountService accountService,
     IBankingService bankingService,
     CommandDelegator commandDelegator)
 {
     _logger           = logger;
     _accountService   = accountService;
     _bankingService   = bankingService;
     _commandDelegator = commandDelegator;
 }
 public CreditPaymentController(
     dbwebContext _ctx,
     ISysParameterService isysParamService,
     IStatusService istatusService,
     IBankingService ibankingService
     )
 {
     ctx = _ctx;
     iSysParamService = isysParamService;
     iStatusService   = istatusService;
     iBankingService  = ibankingService;
 }
Ejemplo n.º 14
0
 public LoginCommandHandler(
     ILogger <LoginCommandHandler> logger,
     IAccountService accountService,
     IBankingService bankingService,
     EventDelegator eventDelegator,
     ApplicationContext applicationContext)
 {
     _logger             = logger;
     _accountService     = accountService;
     _bankingService     = bankingService;
     _eventDelegator     = eventDelegator;
     _applicationContext = applicationContext;
 }
Ejemplo n.º 15
0
        /// <summary>
        ///     Initializes a new instance of the <see cref="WithdrawViewModel" /> class.
        /// </summary>
        /// <param name="provider">The provider.</param>
        /// <param name="service">The service.</param>
        /// <param name="dispatcherAccessor">The dispatcher accessor.</param>
        public WithdrawViewModel(ICredentialsProvider provider, IBankingService service, IDispatcherAccessor dispatcherAccessor)
        {
            if (provider == null)
            {
                throw new ArgumentNullException(nameof(provider));
            }
            if (service == null)
            {
                throw new ArgumentNullException(nameof(service));
            }
            if (dispatcherAccessor == null)
            {
                throw new ArgumentNullException(nameof(dispatcherAccessor));
            }

            _provider           = provider;
            _service            = service;
            _dispatcherAccessor = dispatcherAccessor;
            GetCommand          = new DelegateCommand(Withdraw);
        }
        /// <summary>
        ///     Initializes a new instance of the <see cref="CurrentBalanceViewModel" /> class.
        /// </summary>
        /// <param name="regionManager">The region manager.</param>
        /// <param name="provider">The provider.</param>
        /// <param name="service">The service.</param>
        /// <param name="dispatcherAccessor">The dispatcher accessor.</param>
        public CurrentBalanceViewModel(IRegionManager regionManager, ICredentialsProvider provider, IBankingService service, IDispatcherAccessor dispatcherAccessor)
        {
            if (regionManager == null)
            {
                throw new ArgumentNullException(nameof(regionManager));
            }
            if (provider == null)
            {
                throw new ArgumentNullException(nameof(provider));
            }
            if (service == null)
            {
                throw new ArgumentNullException(nameof(service));
            }
            if (dispatcherAccessor == null)
            {
                throw new ArgumentNullException(nameof(dispatcherAccessor));
            }

            _provider           = provider;
            _service            = service;
            _dispatcherAccessor = dispatcherAccessor;
            BackCommand         = new DelegateCommand(() => regionManager.RequestNavigate(RegionName.MainRegion, ViewName.ActionsView));
        }
Ejemplo n.º 17
0
 public HomeController(IBankingService bankingService)
 {
     _bankingService = bankingService;
 }
Ejemplo n.º 18
0
 public RecordWithdrawCommandHandler(IBankingService bankingService, EventDelegator eventDelegator)
 {
     this.bankingService = bankingService;
     this.eventDelegator = eventDelegator;
 }
 public SoapWithdrawTest()
 {
     _service = new BankingService(new MockDataInserter());
     _data    = new AccountsTestData();
 }
Ejemplo n.º 20
0
 public ShoppingCartBuilder WithBankingService(IBankingService bankingService)
 {
     _bankingService = bankingService;
     return(this);
 }
Ejemplo n.º 21
0
 public ShoppingCartBuilder()
 {
     _userName       = "******";
     _userRepository = null;
     _bankingService = null;
 }
Ejemplo n.º 22
0
 public CheckBalanceCommandHandler(IBankingService bankingService, EventDelegator eventDelegator)
 {
     this.bankingService = bankingService;
     this.eventDelegator = eventDelegator;
 }
 public SoapTransferTest()
 {
     _service = new BankingService(new MockDataInserter());
     _data    = new AccountsTestData();;
 }
Ejemplo n.º 24
0
 public BankingController(IBankingService bankingService, IHttpResponseResult httpResponseResult)
 {
     _bankingService = bankingService;
 }
Ejemplo n.º 25
0
 public AuthenticationController(IBankingService bankingService)
 {
     _bankingService = bankingService;
 }
Ejemplo n.º 26
0
 /// <inheritdoc />
 public BankingController(IBankingService bankingService, ILogger <BankingController> logger)
 {
     BankingService = bankingService;
     Logger         = logger;
 }
Ejemplo n.º 27
0
 public void Setup()
 {
     service = new BankingService();
 }
 public AccountDetailsModel(UserManager <ApplicationUser> userManager, ApplicationDbContext context)
 {
     _userManager    = userManager;
     _bankingService = new BankingService(context);
     Accounts        = new List <AccountModel>();
 }
Ejemplo n.º 29
0
 public BankingsController(IBankingService bankingService)
 {
     _bankingService = bankingService;
 }
Ejemplo n.º 30
0
 public DefaultPaymentsProcessingService(IDtoMapper dtoMapper, IBankingService bankingService)
 {
     this._dtoMapper      = dtoMapper;
     this._bankingService = bankingService;
 }