public TimeQueueApplication(ITimeMapService timeMapService)
        {
            if (timeMapService == null)
            {
                throw new ArgumentNullException("Time map services is not initialized");
            }

            _timeMapService = timeMapService;
        }
        public TimeMapApplication(ITimeMapService timeMapService, IConfigService configService)
        {
            if (timeMapService == null)
            {
                throw new ArgumentNullException(nameof(timeMapService));
            }

            _timeMapService = timeMapService;

            if (configService == null)
            {
                throw new ArgumentNullException(nameof(configService));
            }

            _configService = configService;
        }
        public OrderService(IOrderUnitOfWork ordersDatabase, IContactService contactService, ITimeMapService timeMapService, IConfig config, OrderFactory orderFactory)
        {
            if (ordersDatabase == null)
            {
                throw new ArgumentNullException(nameof(ordersDatabase));
            }

            _ordersDatabase = ordersDatabase;

            if (contactService == null)
            {
                throw new ArgumentNullException(nameof(contactService));
            }

            _contactService = contactService;

            if (timeMapService == null)
            {
                throw new ArgumentNullException(nameof(timeMapService));
            }

            _timeMapService = timeMapService;

            if (config == null)
            {
                throw new ArgumentNullException(nameof(config));
            }

            _config = config;

            if (orderFactory == null)
            {
                throw new ArgumentNullException(nameof(orderFactory));
            }

            _orderFactory = orderFactory;
        }