static void Main(string[] args)
        {
            IDataOperator fileDataOperator = new FileDataOperator("ApplicationsInput.json", "ServicesInput.json");

            ISynchronizationSender synchronyzationSender =
                new RabbitMqSynchronizationSender("ServiceDeskSlave", "ServiceDeskSlaveToMaster", "");
            ISynchronizationSubscriber synchronizationSubscriber =
                new RabbitMqSynchronizationSubscriber("ServiceDeskMasterToSlave");

            var domainLogic = new DomainLogic(fileDataOperator, synchronyzationSender);

            synchronizationSubscriber.SubscribeOn(domainLogic);

            Console.ReadKey();
        }
        static void Main(string[] args)
        {
            IDataOperator          fileDataOperator      = new FileDataOperator("ApplicationsInput.json", "ServicesInput.json");
            ISynchronizationSender synchronyzationSender =
                new RabbitMqSynchronizationSender("ServiceDeskMaster", "ServiceDeskMasterToSlave", "MastersApplication");
            ISynchronizationSubscriber synchronizationSubscriber =
                new RabbitMqSynchronizationSubscriber("ServiceDeskSlaveToMaster");

            List <Application> allApplications = new List <Application>();

            for (int i = 100001; i < 100411; i++)
            {
                allApplications.Add(fileDataOperator.GetApplication(i.ToString()));
            }

            var domainLogic = new DomainLogic(fileDataOperator, synchronyzationSender);

            synchronizationSubscriber.SubscribeOn(domainLogic);

            List <Application> applications = new List <Application>();
            ConsoleKeyInfo     input;

            do
            {
                Console.WriteLine("Введите номер обращения");
                string number = Console.ReadLine();
                if (number == "panic")
                {
                    foreach (var application in allApplications)
                    {
                        domainLogic.SendApplication(application);
                    }
                }
                else
                {
                    Application application = fileDataOperator.GetApplication(number);
                    application.Status = "New";
                    domainLogic.SendApplication(application);
                }

                input = Console.ReadKey();
            } while (input.Key != ConsoleKey.Escape);



            Console.ReadKey();
        }