public void ctor_AppConfigSyncServiceNull_ThrowException()
        {
            IAppConfigurationSyncService appConfigSyncService = null;
            var queueServiceMock  = new Mock <IEventsService>();
            var configurationMock = new Mock <IConfiguration>();

            Assert.Throws <ArgumentNullException>(() =>
            {
                var target = new AppConfigSync(appConfigSyncService,
                                               queueServiceMock.Object,
                                               configurationMock.Object);
            });
        }
        public AppConfigSync(IAppConfigurationSyncService appConfigSyncService,
                             IEventsService queueService,
                             IConfiguration configuration)
        {
            if (appConfigSyncService == null)
            {
                throw new ArgumentNullException(nameof(appConfigSyncService));
            }
            if (queueService == null)
            {
                throw new ArgumentNullException(nameof(queueService));
            }
            if (configuration == null)
            {
                throw new ArgumentNullException(nameof(configuration));
            }

            this.appConfigSyncService = appConfigSyncService;
            this.queueService         = queueService;
            this.configuration        = configuration;
        }