private static void Demonstrate() { var copyMachine = new CopyMachine(10); copyMachine.PutMoney(5); copyMachine.PutMoney(15); copyMachine.ChooseDevice(Device.Bluetooth); copyMachine.ChooseDocument("document.doc"); copyMachine.PrintDocument(); copyMachine.ChooseDevice(Device.FlashDrive); copyMachine.ChooseDocument("book.pdf"); copyMachine.PrintDocument(); }
private static void IncorrectDemonstrate() { var copyMachine = new CopyMachine(10); copyMachine.ChooseDevice(Device.Bluetooth); copyMachine.ChooseDocument("document.doc"); copyMachine.PrintDocument(); copyMachine.TakeChange(); }