private bool HadMultipleAttemptsRecently(DateTime currentTimestamp)
 {
     return
         (attemptTimestamps.Count == attemptTimestamps.Capacity &&
          attemptTimestamps.All(ts => currentTimestamp - ts <= RecencyThreshold));
 }
Exemple #2
0
 public void BufferStartsEmpty()
 {
     Assert.Empty(sut.All());
 }