コード例 #1
0
 public TaxTypesController(TaxCalculatorContext context)
 {
     _context = context;
 }
コード例 #2
0
 public TaxCalculationRepository(TaxCalculatorContext context, IMapper mapper)
 {
     _context = context;
     _mapper  = mapper;
 }
コード例 #3
0
        public decimal Calculate(string countryCode, decimal annualIncome)
        {
            _context = new TaxCalculatorContext(ResolveTaxCalculatorStrategy(countryCode));

            return(_context.Calculate(annualIncome));
        }
コード例 #4
0
 public PostalCodesController(TaxCalculatorContext context)
 {
     _context = context;
 }
コード例 #5
0
 public HomeController(ILogger <HomeController> logger, TaxCalculatorContext context)
 {
     _logger  = logger;
     _context = context;
 }
コード例 #6
0
 public ProgressiveTaxesController(TaxCalculatorContext context)
 {
     _context = context;
 }
コード例 #7
0
 public CalculatedTaxesController(TaxCalculatorContext context)
 {
     _context = context;
 }