public bool IsEverythingReady()
        {
            bool isReady = false;

            SlotController slotController = new SlotController();

            bool slotIsOpened = false;
            slotIsOpened = slotController.OpenSlot();

            SessionManager manager = new SessionManager();
            bool sessionIsValid = false;

            sessionIsValid = manager.IsValid();
            if (sessionIsValid == true && slotIsOpened)
            {
                isReady = true;
            }
            else
            {
                isReady = false;
            }
            return isReady;
        }
        private static void Main(string[] args)
        {
            Console.WriteLine("Welcome to use SATM...");
            CentralBankCommunicator communicator = new CentralBankCommunicator();
            communicator.SendMessage("send message", "10.22.149.105");
            Console.WriteLine(communicator.GetMessage("10.22.149.105"));

            bool sessionIsValid = false;
            bool deviceIsValid = false;

            SessionManager manager = new SessionManager();
            sessionIsValid = manager.IsValid();

            DeviceController controller = new DeviceController();
            deviceIsValid = controller.IsEverythingReady();

            if (sessionIsValid == true && deviceIsValid == true)
            {
                Console.WriteLine("You can withdraw money now");
            }
            //(new CardValidatorDriver()).Test();

            Console.ReadLine();
        }