Пример #1
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();
        }
        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();
        }