public ShoppingList(int count, Good good, ITaxStrategy taxationStrategy) { this.count = count; this.name = good.getGoodName(); decimal basePrice = this.count * good.getPrice(); this.taxes = taxationStrategy.getTaxes(basePrice, good.getTaxRate()); this.price = basePrice + this.taxes; }
public OrderProcessor(ITaxStrategy taxStrategy) { TaxStrategy = taxStrategy; }
public FlatValueStrategyTests() { flatValueStrategy = new FlatValueStrategy(); }
public InterestOperation(ITaxStrategy taxStrategy) { this.m_strategy = taxStrategy; }
public ShoppingCart(ITaxStrategy taxationStrategy) { this.taxation = taxationStrategy; this.items = new List <ShoppingList>(); }
public FlatRateStrategyTests() { flatRateStrategy = new FlatRateStrategy(); }
public TaxManager(ITaxStrategy taxStrategy) { TaxStrategy = taxStrategy; }
public Type CreateTaxStrategy_Should_Return_TaxStrategy_Instance(TaxStrategy taxStrategyType) { ITaxStrategy taxStrategy = _sut.CreateTaxStrategy(taxStrategyType); return(taxStrategy.GetType()); }
public TaxPayer(ITaxStrategy strategy, double income) { Strategy = strategy; Income = income; }
public InterestOperation(ITaxStrategy strategy) { this.strategy = strategy; }
public ProgressiveStrategyTests() { progressiveStrategy = new ProgressiveStrategy(); }
public TaxManager(ITaxStrategy strategy) { m_strategy = strategy; }
public TaxCalculatorController(ILogger <TaxCalculatorController> logger, IConfiguration config, ITaxStrategy taxStrategy) { _logger = logger ?? throw new ArgumentNullException(nameof(logger)); _config = config ?? throw new ArgumentNullException(nameof(config)); _taxStrategy = taxStrategy ?? throw new ArgumentNullException(nameof(taxStrategy)); }