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>()); }