public static void GetPrice(Estate estate, ComissionCalculator calculator, InitialPrice price) { var initPrice = price.GetInitialPrice(estate); var finalPrice = calculator.CalculateFullPrice(estate, initPrice); Console.WriteLine("The final price will be: " + finalPrice); }
public static void GetComission(Estate estate, ComissionCalculator calculator, InitialPrice price) { var initPrice = price.GetInitialPrice(estate); var comission = calculator.CalculateComission(initPrice); Console.WriteLine("Our comission will be:" + comission); }