public void checking_expiry_with_expired_ticket_works() { var signer = new TimeStampSigner("testing"); var signed = signer.Sign("hello world"); System.Threading.Thread.Sleep(1100); signer.HasExpired(signed, 1).ShouldBe(true); }
public void checking_expiry_with_valid_ticket_works() { var signer = new TimeStampSigner("testing"); var signed = signer.Sign("hello world"); signer.HasExpired(signed, 2).ShouldBe(false); }