public void Records_hits_correctly()
        {
            var provider = new StatsProvider("unit-test");

            for (var i = 0; i < 10; i++)
            {
                provider.ReportCacheHit(HttpStatusCode.OK);
                provider.GetStatistics().PerStatusCode[HttpStatusCode.OK].CacheHit.Should().Be(i + 1);
                provider.ReportCacheHit(HttpStatusCode.BadRequest);
                provider.GetStatistics().PerStatusCode[HttpStatusCode.BadRequest].CacheHit.Should().Be(i + 1);
                provider.GetStatistics().Total.CacheHit.Should().Be(2 * (i + 1));
                provider.GetStatistics().Total.CacheMiss.Should().Be(0);
            }
        }
        public void Records_hits_correctly()
        {
            var provider = new StatsProvider("unit-test");

            for (var i = 0; i < 10; i++)
            {
                provider.ReportCacheHit(HttpStatusCode.OK);
                provider.GetStatistics().PerStatusCode[HttpStatusCode.OK].CacheHit.Should().Be(i + 1);
                provider.ReportCacheHit(HttpStatusCode.BadRequest);
                provider.GetStatistics().PerStatusCode[HttpStatusCode.BadRequest].CacheHit.Should().Be(i + 1);
                provider.GetStatistics().Total.CacheHit.Should().Be(2 * (i + 1));
                provider.GetStatistics().Total.CacheMiss.Should().Be(0);
            }
        }