static void Main(string[] args) { HarezmiSwitch harezmiSwitch = new HarezmiSwitch(new PhilipsLambaAdapter()); harezmiSwitch.On(); harezmiSwitch.Off(); harezmiSwitch.SetLamba(new GeneralElectricLambaAdapter()); harezmiSwitch.On(); harezmiSwitch.Off(); Console.ReadKey(); }
static void Main(string[] args) { HarezmiSwitch harezmiSwitch = new HarezmiSwitch(new PhilipsLambaAdapter()); harezmiSwitch.On(); harezmiSwitch.Off(); harezmiSwitch.SetLamba(new GeneralElectricLambaAdapter()); harezmiSwitch.On(); harezmiSwitch.Off(); Console.ReadKey(); }