public void UsesGetOrCreateSiteId() { var version = CreateUmbracoVersion(9, 3, 1); var siteIdentifierServiceMock = new Mock <ISiteIdentifierService>(); var usageInformationServiceMock = new Mock <IUsageInformationService>(); var sut = new TelemetryService( Mock.Of <IManifestParser>(), version, siteIdentifierServiceMock.Object, usageInformationServiceMock.Object, Mock.Of <IMetricsConsentService>()); Guid guid; sut.TryGetTelemetryReportData(out _); siteIdentifierServiceMock.Verify(x => x.TryGetOrCreateSiteIdentifier(out guid), Times.Once); }