public TransactionBuilderService(ITransactionOutputsService transactionOutputsService,
                                  IFeeService feeService, Network network)
 {
     _transactionOutputsService = transactionOutputsService;
     _feeService = feeService;
     _network    = network;
 }
Ejemplo n.º 2
0
        public async Task Setup()
        {
            var dbContextFactory = new DbContextFactory();

            DbContext      = dbContextFactory.CreateDbContext(new string[] { });
            CoreUnitOfWork = new CoreEfCoreUnitOfWork(DbContext);
            var brankoBankService = new BrankoBankService();

            BankRoutingService = new BankRoutingService(brankoBankService);
            FeeService         = new FeeService();

            var inMemorySettings = new Dictionary <string, string> {
                { "MaximalDeposit", "750000" },
                { "MaximalWithdraw", "500000" },
                { "NumberOfDaysAfterCreationWithNoFee", "0" },
                { "FirstTransactionFreeEachMonth", "True" },
                { "FixedFeeLimit", "10000" },
                { "FixedFee", "100" },
                { "PercentageFee", "1" },
                { "AdminPassword", "123456" }
            };

            Configuration = new ConfigurationBuilder()
                            .AddInMemoryCollection(inMemorySettings)
                            .Build();
        }
Ejemplo n.º 3
0
 public CheckoutModel(
     IProductService productSer,
     IMapper mapper,
     IPromotionService promotionSer,
     IFeeService feeSer) : base(productSer, mapper, promotionSer)
 {
 }
Ejemplo n.º 4
0
 public LoanController(ILoanService loans, IFeeService feeService, IMemberService memberService, IBookService bookService)
 {
     _bookService   = bookService;
     _memberService = memberService;
     _loanService   = loans;
     _feeService    = feeService;
 }
Ejemplo n.º 5
0
        public async Task Setup()
        {
            var dbContextFactory = new SampleDbContextFactory();

            DbContext      = dbContextFactory.CreateDbContext(new string[] { });
            CoreUnitOfWork = new EfCoreUnitOfWork(DbContext);
            var firstBankService = new FirstBankService();

            BankRoutingService = new BankRoutingService(firstBankService);
            FeeService         = new FeeService();

            var inMemorySettings = new Dictionary <string, string> {
                { "MaxDeposit", "1000000" },
                { "MaxWithdraw", "100000" },
                { "DaysAfterWalletCreationWithNoFee", "7" },
                { "IsFirstTransferFreeInMonth", "True" },
                { "FixedFee", "100" },
                { "FeeLimit", "10000" },
                { "PercentageFee", "1" }
            };

            Configuration = new ConfigurationBuilder()
                            .AddInMemoryCollection(inMemorySettings)
                            .Build();
        }
Ejemplo n.º 6
0
 //Constructor
 public RecordSearchService(IClientService clientService, IPersonService personService, IAddressService addressService, IFeeService feeService)
 {
     _cs = clientService;
     _ps = personService;
     _as = addressService;
     _fs = feeService;
     SetConnectionString();
 }
Ejemplo n.º 7
0
 public UtilityController(IAboutService aboutService, ITermsService termsService, IPolicyService policyService, IFeeService feeService, IContactService contactService, IHomeService homeService)
 {
     this.aboutService   = aboutService;
     this.termsService   = termsService;
     this.policyService  = policyService;
     this.feeService     = feeService;
     this.contactService = contactService;
     this.homeService    = homeService;
 }
Ejemplo n.º 8
0
 public ATMachine(ICardReader cardReader, ICardService cardService, IPaperNoteDispenseAlgorithm paperNoteDispenseAlgorithm,
                  IFeeService feeService, IATMMaintenance atmMaintenance)
 {
     _cardReader  = cardReader;
     _cardService = cardService;
     _paperNoteDispenseAlgorithm = paperNoteDispenseAlgorithm;
     _feeService     = feeService;
     _atmMaintenance = atmMaintenance;
 }
Ejemplo n.º 9
0
 public TransactionController(IWebHostEnvironment env, IDeliveryTypeService deliveryTypeService, ITransactionService transactionService, UserManager <ApplicationUser> userManager, ITransactionLinkService transactionLinkService, IFeeService feeService, IPaymentService paymentService)
 {
     this.deliveryTypeService = deliveryTypeService;
     this.transactionService  = transactionService;
     this.userManager         = userManager;
     this.env = env;
     this.transactionLinkService = transactionLinkService;
     this.feeService             = feeService;
     this.paymentService         = paymentService;
 }
Ejemplo n.º 10
0
 public RefundOriginalPaymentBalance(IPaymentService paymentService,
                                     IFeeService feeService,
                                     IConfiguration configuration,
                                     IBookingCommiter bookingCommiter)
 {
     _paymentService  = paymentService;
     _feeService      = feeService;
     _configuration   = configuration;
     _bookingCommiter = bookingCommiter;
 }
 public TransactionBuilderService(ITransactionOutputsService transactionOutputsService,
                                  IAddressValidator addressValidator,
                                  IFeeService feeService,
                                  OperationsConfirmationsSettings confirmationsSettings)
 {
     _transactionOutputsService = transactionOutputsService;
     _addressValidator          = addressValidator;
     _feeService            = feeService;
     _confirmationsSettings = confirmationsSettings;
 }
Ejemplo n.º 12
0
 public CartModel(
     IProductService productSer,
     IMapper mapper,
     IPromotionService promotionSer,
     IFeeService feeSer,
     ICache cache) : base(productSer, mapper, promotionSer)
 {
     _feeSer = feeSer;
     ListFee = _feeSer.GetListItems();
 }
Ejemplo n.º 13
0
 public FeesController(IFeeService feeService, ISchoolService schoolService, ISchoolClassService schoolClassService, ITransactionService transactionService,
                       IStudentService studentService, IMapperService mapperService, IUserService userService)
 {
     this._feeService         = feeService;
     this._schoolService      = schoolService;
     this._schoolClassService = schoolClassService;
     this._studentService     = studentService;
     this._mapperService      = mapperService;
     this._userService        = userService;
     this._transactionService = transactionService;
 }
Ejemplo n.º 14
0
        public FeeServiceTests()
        {
            this.storageBrokerMock  = new Mock <IStorageBroker>();
            this.dateTimeBrokerMock = new Mock <IDateTimeBroker>();
            this.loggingBrokerMock  = new Mock <ILoggingBroker>();

            this.feeService = new FeeService(
                storageBroker: this.storageBrokerMock.Object,
                dateTimeBroker: this.dateTimeBrokerMock.Object,
                loggingBroker: this.loggingBrokerMock.Object);
        }
Ejemplo n.º 15
0
 public BalanceStrategyContext(IPaymentService paymentService,
                               IFeeService feeService,
                               IConfiguration configuration,
                               IBookingCommiter bookingCommiter,
                               IBalanceStrategyFactory balanceStrategyFactory)
 {
     _paymentService         = paymentService;
     _feeService             = feeService;
     _configuration          = configuration;
     _bookingCommiter        = bookingCommiter;
     _balanceStrategyFactory = balanceStrategyFactory;
 }
Ejemplo n.º 16
0
 public WalletService(
     ICoreUnitOfWork coreUnitOfWork,
     IBankRoutingService bankRoutingService,
     IConfiguration configuration,
     IFeeService feeService
     )
 {
     CoreUnitOfWork     = coreUnitOfWork;
     BankRoutingService = bankRoutingService;
     Configuration      = configuration;
     FeeService         = feeService;
 }
Ejemplo n.º 17
0
 public BaseAdminModelFactory(ICategoryService categoryService,
                              ICategoryTemplateService categoryTemplateService,
                              ICountryService countryService,
                              ICurrencyService currencyService,
                              ICustomerActivityService customerActivityService,
                              ICustomerService customerService,
                              IDateRangeService dateRangeService,
                              IDateTimeHelper dateTimeHelper,
                              IEmailAccountService emailAccountService,
                              ILanguageService languageService,
                              ILocalizationService localizationService,
                              IManufacturerService manufacturerService,
                              IManufacturerTemplateService manufacturerTemplateService,
                              IPluginFinder pluginFinder,
                              IProductTemplateService productTemplateService,
                              IShippingService shippingService,
                              IStateProvinceService stateProvinceService,
                              IStaticCacheManager cacheManager,
                              IStoreService storeService,
                              ITaxCategoryService taxCategoryService,
                              ITopicTemplateService topicTemplateService,
                              IVendorService vendorService,
                              ICarService carService,
                              IDriverService driverService,
                              IFeeService feeService)
 {
     _categoryService             = categoryService;
     _categoryTemplateService     = categoryTemplateService;
     _countryService              = countryService;
     _currencyService             = currencyService;
     _customerActivityService     = customerActivityService;
     _customerService             = customerService;
     _dateRangeService            = dateRangeService;
     _dateTimeHelper              = dateTimeHelper;
     _emailAccountService         = emailAccountService;
     _languageService             = languageService;
     _localizationService         = localizationService;
     _manufacturerService         = manufacturerService;
     _manufacturerTemplateService = manufacturerTemplateService;
     _pluginFinder           = pluginFinder;
     _productTemplateService = productTemplateService;
     _shippingService        = shippingService;
     _stateProvinceService   = stateProvinceService;
     _cacheManager           = cacheManager;
     _storeService           = storeService;
     _taxCategoryService     = taxCategoryService;
     _topicTemplateService   = topicTemplateService;
     _vendorService          = vendorService;
     this.carService         = carService;
     this.driverService      = driverService;
     this.feeService         = feeService;
 }
 public OrderPaymentManager(IOrderDao dao, IOrderPaymentDao paymentDao, IAccountDao accountDao, IOrderDao orderDao, ICommandBus commandBus,
                            ICreditCardDao creditCardDao, IIbsOrderService ibs, IServerSettings serverSettings, IPaymentService paymentService, IFeeService feeService, ILogger logger)
 {
     _accountDao     = accountDao;
     _orderDao       = orderDao;
     _commandBus     = commandBus;
     _dao            = dao;
     _paymentDao     = paymentDao;
     _creditCardDao  = creditCardDao;
     _ibs            = ibs;
     _serverSettings = serverSettings;
     _paymentService = paymentService;
     _feeService     = feeService;
     _logger         = logger;
 }
Ejemplo n.º 19
0
        //Constructor
        public SettingsScreenViewModel(IEventAggregator eventAggregator, IRecordSearchService recordSearchService, IPersonService personService,
                                       IFeeService feeService, IClientService clientService, IAddressService addressService, IApplicationCommands applicationCommands,
                                       IStaffService staffService)
        {
            _ea      = eventAggregator;
            _rs      = recordSearchService;
            _ps      = personService;
            _fs      = feeService;
            _cs      = clientService;
            _as      = addressService;
            _ss      = staffService;
            Settings = Settings.Instance;
            ListFeeStructures();

            LocateDatabaseCommand = new DelegateCommand(LocateDatabase);
            SaveSettingsCommand   = new DelegateCommand(SaveSettings);
            applicationCommands.SaveCompCommand.RegisterCommand(SaveSettingsCommand);
        }
 public WalletService(
     ICoreUnitOfWork coreUnitOfWork,
     IBankRoutingService bankRoutingService,
     IFeeService feeService,
     IConfiguration configuration)
 {
     CoreUnitOfWork     = coreUnitOfWork;
     BankRoutingService = bankRoutingService;
     FeeService         = feeService;
     MaxDeposit         = decimal.Parse(configuration["MaxDeposit"]);
     MaxWithdraw        = decimal.Parse(configuration["MaxWithdraw"]);
     DaysAfterWalletCreationWithNoFee = Int32.Parse(configuration["DaysAfterWalletCreationWithNoFee"]);
     IsFirstTransferFreeInMonth       = bool.Parse(configuration["IsFirstTransferFreeInMonth"]);
     FixedFee      = decimal.Parse(configuration["FixedFee"]);
     PercentageFee = Int32.Parse(configuration["PercentageFee"]);
     FeeLimit      = decimal.Parse(configuration["FeeLimit"]);
     AdminPASS     = configuration["AdminPASS"];
 }
        public async Task Setup()
        {
            var dbContextFactory = new DbContextFactory();

            DbContext      = dbContextFactory.CreateDbContext(new string[] { });
            CoreUnitOfWork = new CoreEfCoreUnitOfWork(DbContext);
            var brankoBankService = new BrankoBankService();

            BankRoutingService = new BankRoutingService(brankoBankService);
            FeeService         = new FeeService();

            var inMemorySettings = new Dictionary <string, string> {
                { "MaximalDeposit", "2000000" },
                { "MaximalWithdraw", "2000000" },
            };

            Configuration = new ConfigurationBuilder()
                            .AddInMemoryCollection(inMemorySettings)
                            .Build();
        }
Ejemplo n.º 22
0
 public Fees(IFeeService feeService)
 {
     feeService = _feeService;
     InitializeComponent();
     dgvList.AutoGenerateColumns = false;
 }
Ejemplo n.º 23
0
 public MyTransactionController(ITransactionLinkService transactionLinkService, ITransactionService transactionService, IFeeService feeService)
 {
     this.transactionLinkService = transactionLinkService;
     this.transactionService     = transactionService;
     this.feeService             = feeService;
 }
Ejemplo n.º 24
0
 public TransactionBuilderService(ITransactionOutputsService transactionOutputsService,
                                  IFeeService feeService)
 {
     _transactionOutputsService = transactionOutputsService;
     _feeService = feeService;
 }
Ejemplo n.º 25
0
 public FeesController(IFeeService feeService) =>
 this.feeService = feeService;
Ejemplo n.º 26
0
 public FeeController(ILogger <FeeController> logger, IFeeService feeService, IStudentService studentService)
 {
     _logger         = logger;
     _feeService     = feeService;
     _studentService = studentService;
 }
Ejemplo n.º 27
0
 public FeeController(IFeeService service)
 {
     this.service = service;
 }
Ejemplo n.º 28
0
 public FeesController(UserManager <EdumanUser> userManager, IFeeService feeService)
 {
     this.userManager = userManager;
     this.feeService  = feeService;
 }
Ejemplo n.º 29
0
 public FeesController(IFeeService feeService) : base(feeService)
 {
 }
Ejemplo n.º 30
0
 public FeeController(IFeeService feeService)
 {
     _feeService = feeService as IFeeService ?? throw new ArgumentNullException(nameof(feeService));
 }
Ejemplo n.º 31
0
 public FeeController(IFeeService _feeService) : base(_feeService)
 {
     feeService = _feeService;
 }