public void ElapsedTime_Inside_Config() { var config = TimeSpan.FromSeconds(10); var prev = DateTime.UtcNow.Subtract(TimeSpan.FromSeconds(5)); var elapsed = RulesHelper.HasElapsedTime(prev, config); Assert.IsFalse(elapsed); }