public static ITariffCalculator GetTariffCalculator() { if (calculator == null) { calculator = new TariffCalculator(); } return(calculator); }
public TariffCalculateService(ITariffCalculator productA, ITariffCalculator productB) { this.tariffCalculatorProductA = productA; this.tariffCalculatorProductB = productB; }
public TariffCalculateServiceTests() { _tariffCalculatorProductA = new ProductA(); _tariffCalculatorProductB = new ProductB(); _tariffCalculateService = new TariffCalculateService(_tariffCalculatorProductA, _tariffCalculatorProductB); }
public DomainTests() { this.tariffCalculatorProductA = new ProductA(); this.tariffCalculatorProductB = new ProductB(); }