コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }