public void TokenReplayCache_TryFind_False() { var subject = new TokenReplayCache(); var key = "key"; subject.TryFind(key).Should().BeFalse(); }
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(); }