public void SupplyPower(Electricity electricity) { FlatPin flatPin1 = new FlatPin(); FlatPin flatPin2 = new FlatPin(); _americanPowerPlug.SupplyPower(electricity, flatPin1, flatPin2); }
public void SupplyPower(Electricity electricity, FlatPin flatPin1, FlatPin flatPin2) { Console.WriteLine("{0} being supplied to American Power Plug via {1} and {2}", electricity, flatPin1, flatPin2); }