public void SetUp()
        {
            _osHelper      = Substitute.For <IOsHelper>();
            _versionHelper = Substitute.For <IVersionHelper>();
            _versionHelper.ApplicationVersion.Returns(info => new Version());
            _usageStatisticsSender = Substitute.For <IUsageStatisticsSender>();
            _machineIdGenerator    = Substitute.For <IMachineIdGenerator>();
            _machineIdGenerator.GetMachineId().Returns("testmachinid");
            _applicationNameProvider = new ApplicationNameProvider("testedition");
            _settings         = new PdfCreatorSettings();
            _settingsProvider = Substitute.For <ISettingsProvider>();
            _settingsProvider.Settings.Returns(_settings);
            _gpoSettings   = Substitute.For <IGpoSettings>();
            _threadManager = Substitute.For <IThreadManager>();

            _pdfCreatorUsageStatisticsManager = BuildPdfCreatorUsageStatisticsManager(_threadManager);
        }
 public UsageStatisticsEventsHandler(IPdfCreatorUsageStatisticsManager pdfCreatorUsageStatisticsManager)
 {
     _pdfCreatorUsageStatisticsManager = pdfCreatorUsageStatisticsManager;
 }