Ejemplo n.º 1
0
        public static void Main()
        {
            ScannerUI       scannerUi    = new ScannerUI();
            IAccessProvider keyCardCheck = new KeyCardCheck(scannerUi);
            SecurityManager manager      = new SecurityManager(keyCardCheck);

            manager.Check();
        }
Ejemplo n.º 2
0
        public static void Main()
        {
            ScannerUI       scannerUi    = new ScannerUI();
            KeyCardCheck    keyCardCheck = new KeyCardCheck(scannerUi);
            PinCodeCheck    pinCodeCheck = new PinCodeCheck(scannerUi);
            SecurityManager manager      = new SecurityManager(keyCardCheck, pinCodeCheck);

            manager.Check();
        }