public BusySeasonCalculator(IPostageCalculator postageCalculator)
 {
     this.postageCalculator = postageCalculator;
 }
Пример #2
0
 public double Accept(IPostageCalculator calculator)
 {
     return calculator.Visit(this);
 }
Пример #3
0
 public PostageCalculator(IPostageCalculator calculator)
 {
     this.calculator = calculator;
 }