Example #1
0
 public void TestTryGetEntry(string email, BreachedEmail expected)
 {
     if (expected == null)
     {
         Assert.Equal(_smartCache.TryGetEntry(email), expected);
     }
     else
     {
         Assert.Equal(_smartCache.TryGetEntry(email).Id, expected.Id);
     }
 }
 public BreachedEmail GetEntry(string email)
 {
     return(_cache.TryGetEntry(email));
 }