Ejemplo n.º 1
0
        public async Task RandomDelay_ValidRequest_ValidDelay()
        {
            IRequestAnalyzer randomDelay = new RandomDelay();

            var delay = await randomDelay.CalculateMillisecondDelay(new DefaultHttpContext().Request);

            Assert.IsTrue(delay >= 0);
        }
Ejemplo n.º 2
0
        public async Task RandomDelay_NullRequest_Exception()
        {
            IRequestAnalyzer randomDelay = new RandomDelay();

            var delay = await randomDelay.CalculateMillisecondDelay(null);
        }