public void SendServiceStatistics_HttpHandlerPostAsyncDoesntReciveCall()
        {
            var serviceUpTime = TimeSpan.MaxValue;

            _usageStatisticsManager.EnableUsageStatistics = false;
            _usageStatisticsManager.SendServiceStatistics(serviceUpTime);

            _usageStatisticsSender.DidNotReceive().SendAsync(Arg.Any <IUsageMetric>());
        }
        public void SendPdfCreatorStatistics_UsageStatisticsIsDisabled_HttpHandlerPostDoesntReceiveCall()
        {
            var job = BuildJob();

            _settingsProvider.Settings.ApplicationSettings.UsageStatistics.Enable = false;
            _pdfCreatorUsageStatisticsManager.SendUsageStatistics(_duration, job, _status);

            _threadManager.DidNotReceive().StartSynchronizedThread(Arg.Any <ISynchronizedThread>());
            _usageStatisticsSender.DidNotReceive().SendAsync(Arg.Any <IUsageMetric>());
        }