Esempio n. 1
0
 public ExchangeRatesController(IBankWorkerService bankWorkerService, IUserContextService userContextService, IExchangeRatesService exchangeRatesService, IBankService bankService)
 {
     _exchangeRatesService = exchangeRatesService ?? throw new ArgumentNullException(nameof(exchangeRatesService));
     _bankService          = bankService ?? throw new ArgumentNullException(nameof(bankService));
     _bankWorkerService    = bankWorkerService ?? throw new ArgumentNullException(nameof(bankWorkerService));
     _userContextService   = userContextService ?? throw new ArgumentNullException(nameof(userContextService));
 }
Esempio n. 2
0
 public AddNewCardCommandHandler(ICardRepository cardRepository, IBankService bankService, ILogger <AddNewCardCommandHandler> logger, ICardQuery cardQuery)
 {
     _cardRepository = cardRepository;
     _bankService    = bankService;
     _logger         = logger;
     _cardQuery      = cardQuery;
 }
 public UserAccountService(
     ICoreUnitOfWork coreUnitOfWork,
     IBankService bankService)
 {
     _coreUnitOfWork = coreUnitOfWork;
     _bankService    = bankService;
 }
Esempio n. 4
0
 public BankApplication(IBankService bankService, IUserService userService, IAccountService accountService, IAdminService adminService)
 {
     _bankService    = bankService;
     _accountService = accountService;
     _adminService   = adminService;
     _userService    = userService;
 }
        public void ByCurrencyRatePay(Product product, CurrencyRate currencyRate, IBankService bankService)
        {
            currencyRate.Price = product.Price;
            var result = bankService.ConvertRate(currencyRate);

            Console.WriteLine(result + " " + currencyRate.Unit + " ödeme alındı");
        }
        public async Task RequestAsync(IBankService service, string cvv)
        {
            if (service == null)
            {
                throw new ArgumentNullException(nameof(service));
            }

            var result = await service.RequestPaymentAsync(
                new BankRequest(
                    Id,
                    MerchantId,
                    Card.CardNumber,
                    Card.ExpMonth,
                    Card.ExpYear,
                    cvv,
                    Amount.Value,
                    Amount.Currency));

            if (result.IsSuccess)
            {
                RaiseEvent(new PaymentSucceededEvent(Id, MerchantId, result.BankName, result.StatusCode, result.ResponseReason, result.AuthCode));
            }
            else
            {
                RaiseEvent(new PaymentRejectedEvent(Id, MerchantId, result.BankName, result.StatusCode, result.ResponseReason));
            }
        }
Esempio n. 7
0
 public TaskManagerController(IProjectService projectService, IBankService bankService, IPersonService personService, ITaskService taskService)
 {
     _projectService = projectService;
     _bankService    = bankService;
     _personService  = personService;
     _taskService    = taskService;
 }
Esempio n. 8
0
 /// <summary>
 /// Broker operations controller
 /// </summary>
 /// <param name="logger">The app's <see cref="ILogger"/></param>
 /// <param name="bankService"></param>
 /// <param name="brokerService"><see cref="IBrokerService"/> implementation</param>
 /// <param name="context"></param>
 public BrokerController(ILogger <BrokerController> logger, IBankService bankService, IBrokerService brokerService, IHttpContextAccessor context)
 {
     _logger        = logger;
     _bankService   = bankService;
     _brokerService = brokerService;
     _context       = context;
 }
Esempio n. 9
0
        public void Initialize()
        {
            _mockContext    = new Mock <AppDBContext>();
            _mockRepository = new Mock <IDataRepository <Bank> >();
            listbank        = new List <Bank>
            {
                new Bank
                {
                    ID   = 1,
                    Name = "Maybank"
                },
                new Bank
                {
                    ID   = 2,
                    Name = "CIMB Bank"
                },
                new Bank
                {
                    ID   = 3,
                    Name = "RHB Bank"
                }
            };

            _service = new BankService(_mockRepository.Object);
        }
Esempio n. 10
0
        public void CreateOwner_InvalidParams_ArgumentException()
        {
            IBankService service = GetKernel();

            service.NewOwner("Owner1", "Owner2", "123456");
            Assert.Throws <ArgumentException>(() => service.NewOwner("Owner2", "Owner2", "123456"));
        }
Esempio n. 11
0
 public PaymentService(IBankService bankService, AppDbContext dbContext, ILogger <PaymentService> logger, IConfiguration configuration)
 {
     _bankService   = bankService;
     _dbContext     = dbContext;
     _logger        = logger;
     _encryptionKey = configuration["EncryptionKey"].ToString();
 }
Esempio n. 12
0
 public BankController(ApplicationContext context, IHomePagingService pagingService, IBankService bankService, IValidationService validationService)
 {
     this.context           = context;
     this.pagingService     = pagingService;
     this.bankService       = bankService;
     this.validationService = validationService;
 }
Esempio n. 13
0
 //private IHostingEnvironment _env;
 public BankController(IBankService bankService, IFileService fileService, IPatnerService patnerService)
 {
     _bankService   = bankService;
     _fileService   = fileService;
     _patnerService = patnerService;
     //_env = env;
 }
Esempio n. 14
0
        public BanksController()
        {
            _departmentServices  = new DepartmentService();
            _designationServices = new DesignationService();
            _moduleService       = new ModuleService();
            _officeService       = new OfficeServices();
            _bgService           = new BusinessGroupService();

            _leaveTypeService                = new LeaveTypeService();
            _leaveRuleService                = new LeaveRuleService();
            _leaveRuleDetailService          = new LeaveRuleDetailService();
            _levelService                    = new LevelService();
            _darbandiService                 = new DarbandiService();
            _officeTypeService               = new OfficeTypeService();
            _rankService                     = new RankService();
            _rolesService                    = new RolesService();
            _roleAccessService               = new RolesAccessService();
            _leaveYearService                = new LeaveYearService();
            _sectionService                  = new SectionService();
            _shifService                     = new ShiftService();
            _shiftDayService                 = new ShiftDayService();
            _ethnicityService                = new EthnicityService();
            _jobTypeService                  = new JobTypeService();
            _educationLevelService           = new EducationLevelService();
            _rolesBusinessGroupAccessService = new RolesBusinessGroupAccessService();

            _fiscalService = new FiscalService();
            _bankService   = new BankService();
        }
Esempio n. 15
0
 public JobWorkController(IJobWorkTypeService JobWorkTypeService, IUtilityService UtilityService, IModuleService ModuleService,
                          IUserCredentialService UserCredentialService, IJobWorkerService JobWorkerService, IStateService StateService, ICityService CityService,
                          IBankNameService BankNameService, IBloodGroupService BloodGroupService, IYearExperienceService YearExperienceService, IMonthExperienceService MonthExperienceService,
                          IDepartmentService DepartmentService, IDesignationMasterService DesignationMasterService, ITypeOfSupplierService TypeOfSupplierService,
                          IBankService BankService, IJobWorkPaymentService JobWorkPaymentService, IOutwardToTailorService OutwardToTailorService,
                          IOutwardToTailorItemService OutwardToTailorItemService, IJobWorkStockService JobWorkStockService, IJobWorkOutwardToClientService JobWorkOutwardToClientService)
 {
     this._JobWorkTypeService            = JobWorkTypeService;
     this._utilityService                = UtilityService;
     this._ModuleService                 = ModuleService;
     this._IUserCredentialService        = UserCredentialService;
     this._JobWorkerService              = JobWorkerService;
     this._StateService                  = StateService;
     this._CityService                   = CityService;
     this._BankNameService               = BankNameService;
     this._BloodGroupService             = BloodGroupService;
     this._YearExperienceService         = YearExperienceService;
     this._MonthExperienceService        = MonthExperienceService;
     this._DepartmentService             = DepartmentService;
     this._DesignationMasterService      = DesignationMasterService;
     this._TypeOfSupplierService         = TypeOfSupplierService;
     this._BankService                   = BankService;
     this._JobWorkPaymentService         = JobWorkPaymentService;
     this._OutwardToTailorService        = OutwardToTailorService;
     this._OutwardToTailorItemService    = OutwardToTailorItemService;
     this._JobWorkStockService           = JobWorkStockService;
     this._JobWorkOutwardToClientService = JobWorkOutwardToClientService;
 }
Esempio n. 16
0
        private void TestMethod()
        {
            this.factory = kernel.Get <IBankAccountFactory>();
            this.service = kernel.Get <IBankService>();

            this.service.Add(this.CreateAccount());
        }
Esempio n. 17
0
 public WalletController(IFinancialService financialService, IUserService userService, IBankService bankService, IDocService docService)
 {
     _financialService = financialService;
     _userService      = userService;
     _bankService      = bankService;
     _docService       = docService;
 }
Esempio n. 18
0
        public WalletService(
            ICoreUnitOfWork unitOfWork,
            IBankService bankService,
            IPassService passService,
            string numberOfFirstDaysWithoutComission,
            TransferFactory transferFactory,
            string maxWithdraw,
            string maxDeposit
            )
        {
            UnitOfWork      = unitOfWork;
            BankService     = bankService;
            PassService     = passService;
            TransferFactory = transferFactory;

            if (!int.TryParse(numberOfFirstDaysWithoutComission, out NumberOfFirstDaysWithoutComission))
            {
                throw new ArgumentException("Invalid NumberOfFirstDaysWithoutComission string");
            }

            if (!decimal.TryParse(maxWithdraw, out MaxWithdraw))
            {
                throw new ArgumentException("Invalid MaxDeposit string");
            }

            if (!decimal.TryParse(maxDeposit, out MaxDeposit))
            {
                throw new ArgumentException("Invalid MaxDeposit string");
            }
        }
Esempio n. 19
0
        /// <summary>
        /// Alert is visible when bank  opened and full or when bank upgrade available
        /// </summary>
        private void UpdateBankAlert()
        {
            IBankService bankService = Services.BankService;

            if (bankService.IsOpened && bankService.IsFull)
            {
                bankClosedAlert.Activate();
            }
            else
            {
                bankClosedAlert.Deactivate();
            }

            /*
             * if(bankService.IsOpened ) {
             *  if(bankService.IsFull) {
             *      bankClosedAlert.Activate();
             *  } else if(bankService.IsAvailableNextLevel ) {
             *      bankClosedAlert.Activate();
             *  } else {
             *      bankClosedAlert.Deactivate();
             *  }
             * } else {
             *  if(bankService.IsAvailableNextLevel ) {
             *      bankClosedAlert.Activate();
             *  } else {
             *      bankClosedAlert.Deactivate();
             *  }
             * }*/
        }
Esempio n. 20
0
 public BankController(ApplicationDbContext context,
                       IBankService bankService)
 {
     _context = context;
     StaticDbContext.InitialDBContext(_context);
     _bankService = bankService;
 }
Esempio n. 21
0
        internal static void CreateDefaultAccounts(IBankService bankService)
        {
            Account firstDefault = new Account()
            {
                AccountId       = random.Next(),
                AccountNumber   = random.Next(),
                AccountHolder   = "Default One",
                SecondaryHolder = "No one",
                Balance         = 200.0,
                Password        = "******",
                Username        = "******"
            };

            Account secondDefault = new Account()
            {
                AccountId       = random.Next(),
                AccountNumber   = random.Next(),
                AccountHolder   = "Default two",
                SecondaryHolder = "No one",
                Balance         = 100.0,
                Username        = "******",
                Password        = "******"
            };

            bankService.CreateAccount(firstDefault);
            bankService.CreateAccount(secondDefault);
        }
Esempio n. 22
0
 public CatalogueController(IClientMasterService ClientMasterService, ICountryService CountryService, IStateService StateService,
                            IDistrictService DistrictService, IBankService BankService, IBankNameService BankNameService, IUtilityService UtilityService, IUserCredentialService usercredentialservice, IModuleService iIModuleService,
                            IClientBankDetailService ClientBankDetailService, ICatalogueService CatalogueService, IBarcodeNumberService BarcodeNumberService, IItemNameService ItemNameService,
                            IUniversalBarcodeNumberService UniversalBarocodeNumberService, IItemService ItemService, IColorCodeService ColorCodeService, IItemCategoryService CategoryService,
                            IEntryStockItemService EntryStockItemService, IOpeningStockService OpeningStockService, IInwardItemFromSupplierService InwardItemFromSupplierService, IUnitService UnitService)
 {
     this._ClientMasterService           = ClientMasterService;
     this._CountryService                = CountryService;
     this._StateService                  = StateService;
     this._DistrictService               = DistrictService;
     this._BankService                   = BankService;
     this._BankNameService               = BankNameService;
     this._UtilityService                = UtilityService;
     this._ClientBankDetailService       = ClientBankDetailService;
     this._IUserCredentialService        = usercredentialservice;
     this._iIModuleService               = iIModuleService;
     this._CatalogueService              = CatalogueService;
     this._BarcodeNumberService          = BarcodeNumberService;
     this._ItemNameService               = ItemNameService;
     this._UniversalBarcodeNumberService = UniversalBarocodeNumberService;
     this._ItemService                   = ItemService;
     this._ColorCodeService              = ColorCodeService;
     this._CategoryService               = CategoryService;
     this._EntryStockItemService         = EntryStockItemService;
     this._OpeningStockService           = OpeningStockService;
     this._InwardItemFromSupplierService = InwardItemFromSupplierService;
     this._UnitService                   = UnitService;
 }
Esempio n. 23
0
 public PayUseCase(IBankStatementService bankStatementService, IBankService bankService, IAccountService accountService, INotifiable notifiable)
 {
     _bankStatementService = bankStatementService;
     _bankService          = bankService;
     _accountService       = accountService;
     _notifiable           = notifiable;
 }
 /// <summary>
 /// Initializes a new instance of <see cref="AccountController"/>
 /// </summary>
 /// <param name="bankService">Service for banking logic</param>
 /// <param name="userRepository">Repository for <see cref="User"/> entity</param>
 /// <param name="uow">Unity of work</param>
 public AccountController(IBankService bankService, 
     IUserRepository userRepository, 
     IUnitOfWork uow)
 {
     _bankService = bankService;
     _userRepository = userRepository;
     _uow = uow;
 }
Esempio n. 25
0
        /// <summary>
        /// </summary>
        /// <param name="bankAuthorizeService">Bank authorize service</param>
        /// <param name="currentUserService">Current user service</param>
        /// <param name="bankService">Bank service</param>
        public NonPlaidBankAuthorizationController(IBankAuthorizeService bankAuthorizeService, ICurrentUserService currentUserService, IBankService bankService, IFamilyService FamilyService)

        {
            _bankAuthorizeService = bankAuthorizeService;
            _currentUserService   = currentUserService;
            _bankService          = bankService;
            _familyService        = FamilyService;
        }
 /// <summary>
 /// Initializes a new instance of <see cref="AccountController"/>
 /// </summary>
 /// <param name="bankService">Service for banking logic</param>
 /// <param name="userRepository">Repository for <see cref="User"/> entity</param>
 /// <param name="uow">Unity of work</param>
 public AccountController(IBankService bankService,
                          IUserRepository userRepository,
                          IUnitOfWork uow)
 {
     _bankService    = bankService;
     _userRepository = userRepository;
     _uow            = uow;
 }
Esempio n. 27
0
 /// <summary>
 /// PaymentService constructor
 /// </summary>
 /// <param name="paymentRepository">IPaymentRepository instance</param>
 /// <param name="cardService">ICardService instance</param>
 /// <param name="bankService">IBankService instance</param>
 /// <param name="logger">ILogger instance</param>
 /// <param name="mapper">IMapper instance</param>
 public PaymentService(IPaymentRepository paymentRepository, ICardService cardService, IBankService bankService, ILogger <PaymentService> logger, IMapper mapper)
 {
     _logger            = logger;
     _mapper            = mapper;
     _paymentRepository = paymentRepository;
     _bankService       = bankService;
     _cardService       = cardService;
 }
Esempio n. 28
0
 /// <summary>
 /// 银行卡管理初始化
 /// </summary>
 /// <param name="bankService">bankService</param>
 /// <param name="workContext">workContext</param>
 /// <param name="bankcardService">bankcardService</param>
 /// <param name="brokerService">brokerService</param>
 public BankCardController(IBankService bankService, IWorkContext workContext, IBankCardService bankcardService, IBrokerService brokerService, IBrokerWithdrawService brokerwithdrawService)
 {
     _bankcardService       = bankcardService;
     _brokerService         = brokerService;
     _workContext           = workContext;
     _bankService           = bankService;
     _brokerwithdrawService = brokerwithdrawService;
 }
Esempio n. 29
0
 /// <summary>
 /// 银行卡管理初始化
 /// </summary>
 /// <param name="bankService">bankService</param>
 /// <param name="workContext">workContext</param>
 /// <param name="bankcardService">bankcardService</param>
 /// <param name="brokerService">brokerService</param>
 public BankCardController(IBankService bankService, IWorkContext workContext, IBankCardService bankcardService, IBrokerService brokerService, IBrokerWithdrawService brokerwithdrawService)
 {
     _bankcardService = bankcardService;
     _brokerService = brokerService;
     _workContext = workContext;
     _bankService = bankService;
     _brokerwithdrawService=brokerwithdrawService;
 }
Esempio n. 30
0
 public BankMasterController(IBankService _IBankService
                             , IHostingEnvironment HostingEnvironment
                             , IServiceFactory serviceFactory
                             ) : base(serviceFactory)
 {
     _interface          = _IBankService;
     _HostingEnvironment = HostingEnvironment;
 }
Esempio n. 31
0
 public SellerService(IBankService bankService,
                      IPortfolioService portfolioService,
                      ITraderService traderService)
 {
     this._bankService      = bankService;
     this._portfolioService = portfolioService;
     this._traderService    = traderService;
 }
 public CurrencyController(ICurrencyService currencyService, IBillMasterService billMasterService, IEntryMasterService entryMasterService, IBankService bankService, IUserLogFileService userLogFileService)
 {
     this.currencyService    = currencyService;
     this.billMasterService  = billMasterService;
     this.entryMasterService = entryMasterService;
     this.bankService        = bankService;
     this.userLogFileService = userLogFileService;
 }
Esempio n. 33
0
        public virtual void Init()
        {
            var accountRepository = new AccountRepositoryStub();
            var transactionRepository = new TransactionRepositoryStub();

            RulesService = new BusinessRulesService();
            BankService = new BankService(accountRepository, transactionRepository, RulesService);
            User = CreateUser();
        }
 public ReceiptController()
 {
     service = IoC.Resolve<IReceiptService>("ReceiptService");
     calendarService = IoC.Resolve<ICalendarService>("CalendarService");
     sobService = IoC.Resolve<ISetOfBookService>("SetOfBookService");
     customerService = IoC.Resolve<ICustomerService>("CustomerService");
     customerSiteService = IoC.Resolve<ICustomerSiteService>("CustomerSiteService");
     bankService = IoC.Resolve<IBankService>("BankService");
     bankAccountService = IoC.Resolve<IBankAccountService>("BankAccountService");
     currencyService = IoC.Resolve<ICurrencyService>("CurrencyService");
 }
Esempio n. 35
0
 public BankController(IBankService bankService, 
     IWorkContext workContext)
 {
     _bankService = bankService;
     _workContext = workContext;
 }
Esempio n. 36
0
 public HomeController(IBankService bankService, IAccountService accountService, ISateService stateService)
 {
     this.bankService = bankService;
     this.accountService = accountService;
     this.stateService = stateService;
 }
Esempio n. 37
0
        private readonly IBrokerService _brokerService; //经纪人

        /// <summary>
        ///     银行管理初始化
        /// </summary>
        /// <param name="bankService">bankService</param>
        /// <param name="brokerService">brokerService</param>
        public BankController(IBankService bankService, IBrokerService brokerService)
        {
            _bankService = bankService;
            _brokerService = brokerService;
        }
Esempio n. 38
0
 public HomeController(IEditorService assetService, IBankService bankService, IViewModelMapper mapper)
 {
     this.assetService = assetService;
     this.bankService = bankService;
     this.mapper = mapper;
 }
Esempio n. 39
0
 public TagesZinsRechner(IBankService bankService)
 {
     _bankService = bankService;
 }
Esempio n. 40
0
 public BankPresenter(IBankService bankService, IZinsRechner zinsRechner)
 {
     _bankService = bankService;
     _zinsRechner = zinsRechner;
 }
Esempio n. 41
0
 static BankHelper()
 {
     service = IoC.Resolve<IBankService>("BankService");
     bankAccountService = IoC.Resolve<IBankAccountService>("BankAccountService");
 }
Esempio n. 42
0
 public BankController(IBankService bankService)
 {
     this.bankService = bankService;
 }