public Form1() { InitializeComponent(); // 检查excle是否存在,不存在则创建 if (ApplicationConfig.isUseSqlServer != "1") { billBuzz = new BillExcelBizNPOI(); billBuzz.init(); } else { billBuzz = new BillBiz(); } initControl(); }
public InterestCalculationUnitTest() { var host = WebHost.CreateDefaultBuilder().UseStartup <Startup>().Build(); var provider = host.Services.CreateScope().ServiceProvider; _billBusiness = provider.GetRequiredService <IBillBusiness>(); _rules = new List <InterestRule> { new InterestRule { InterestRuleId = 1, DelayDays = 3, Penalty = 0.02m, InterestPerDay = 0.001m }, new InterestRule { InterestRuleId = 2, DelayDays = 4, Penalty = 0.03m, InterestPerDay = 0.002m }, new InterestRule { InterestRuleId = 3, DelayDays = 6, Penalty = 0.05m, InterestPerDay = 0.003m } }; }
public BillController(IBillBusiness hoaDonBusiness) { _hoaDonBusiness = hoaDonBusiness; }
public BillsController(IBillBusiness billBusiness) { _billBusiness = billBusiness; }