Exemple #1
0
        public static ITariffCalculator GetTariffCalculator()
        {
            if (calculator == null)
            {
                calculator = new TariffCalculator();
            }

            return(calculator);
        }
Exemple #2
0
 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);
 }
Exemple #4
0
 public DomainTests()
 {
     this.tariffCalculatorProductA = new ProductA();
     this.tariffCalculatorProductB = new ProductB();
 }