Пример #1
0
        public void GetPersistentTimeLimiter_with_enumerable_returns_a_TimeLimiter()
        {
            var persistent = TimeLimiter.GetPersistentTimeLimiter(1, TimeSpan.FromSeconds(1), _ => { }, new List <DateTime>());

            persistent.Should().BeOfType <TimeLimiter>();
        }
Пример #2
0
        public void GetPersistentTimeLimiter_returns_a_TimeLimiter()
        {
            var persistent = TimeLimiter.GetPersistentTimeLimiter(1, TimeSpan.FromSeconds(1), _ => { });

            persistent.Should().BeOfType <TimeLimiter>();
        }