static void Main(string[] args) { //IMyConsole console = new RealConsole(); //var myClass = new MyClassToTest(console); //myClass.DoStuff(); Box box = new Box(); IProvideImperialSize imperialSize = box; imperialSize.Bounce(); Console.ReadLine(); }
public static string Bounce(this IProvideImperialSize box) { double howHigh = box.GetArea(); return($"Wow {howHigh}"); }