public static void MainOLD()
        {
            var door = new SecuredDoor(new LabDoor());

            door.Open("laskdjf");
            door.Open("pa55word");

            door.Close();
        }
Beispiel #2
0
        public static void Run()
        {
            Console.WriteLine("=-=-=-=Proxy=-=-=-=");
            Console.WriteLine("Create Lab Door");
            SecuredDoor labDoor = new SecuredDoor(new LabDoor());

            Console.WriteLine("Open with wrong password:"******"wrong pass");
            Console.WriteLine();

            Console.WriteLine("Open with right password:"******"Password");
            Console.WriteLine();

            Console.WriteLine("Close door:");
            labDoor.Close();

            Console.WriteLine("----------------------------------" + Environment.NewLine);
        }