예제 #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);
     }
 }
예제 #2
0
 public BreachedEmail GetEntry(string email)
 {
     return(_cache.TryGetEntry(email));
 }