6 references to TimeLimitedPurposeString
Microsoft.AspNetCore.DataProtection.Extensions.Tests (6)
TimeLimitedDataProtectorTests.cs (6)
25
mockInnerProtector.Setup(o => o.CreateProtector("new purpose").CreateProtector(
TimeLimitedPurposeString
).Protect(
48
mockInnerProtector.Setup(o => o.CreateProtector("new purpose").CreateProtector(
TimeLimitedPurposeString
).Protect(
72
mockInnerProtector.Setup(o => o.CreateProtector(
TimeLimitedPurposeString
).Unprotect(new byte[] { 0x10, 0x11 })).Returns(
96
mockInnerProtector.Setup(o => o.CreateProtector(
TimeLimitedPurposeString
).Unprotect(new byte[] { 0x10, 0x11 })).Returns(
118
mockInnerProtector.Setup(o => o.CreateProtector(
TimeLimitedPurposeString
).Unprotect(new byte[] { 0x10, 0x11 })).Returns(
139
mockInnerProtector.Setup(o => o.CreateProtector(
TimeLimitedPurposeString
).Unprotect(new byte[] { 0x10, 0x11 })).Throws(new Exception("How exceptional!"));