public void PackageVersionsAreParsedCorrectly(string packageId, string packageVersion, string expectedVersion)
        {
            // Arrange
            var logEntry    = GetCdnLogEntry($"http://test.me/{packageId}.{packageVersion}.nupkg");
            var statsParser = new PackageStatisticsParser(null, new LoggerFactory());

            // Act
            var stats = statsParser.FromCdnLogEntry(logEntry);

            // Assert
            Assert.Equal(packageId, stats.PackageId);
            Assert.Equal(expectedVersion, stats.PackageVersion);
        }
        public void TranslatesPackagesCorrectly(string packageId, string packageVersion)
        {
            // Arrange
            var logEntry = GetCdnLogEntry($"http://test.me/{packageId}.{packageVersion}.nupkg");

            var translator  = new TestablePackageTranslator();
            var statsParser = new PackageStatisticsParser(translator, new LoggerFactory());

            // Act
            var stats = statsParser.FromCdnLogEntry(logEntry);

            // Assert
            Assert.Equal(packageId, stats.PackageId);
            Assert.Equal(packageVersion, stats.PackageVersion);
        }