Example #1
0
        public void TokenReplayCache_TryFind_False()
        {
            var subject = new TokenReplayCache();

            var key = "key";

            subject.TryFind(key).Should().BeFalse();
        }
Example #2
0
        public void TokenReplayCache_TryFind_True()
        {
            var subject = new TokenReplayCache();

            var key = "key";

            subject.TryAdd(key, DateTime.UtcNow.Add(TimeSpan.FromDays(1)));

            subject.TryFind(key).Should().BeTrue();
        }