1 write to NumTimesCreateEncryptorInstanceCalled
Microsoft.AspNetCore.DataProtection.Tests (1)
KeyManagement\KeyRingTests.cs (1)
118NumTimesCreateEncryptorInstanceCalled++;
10 references to NumTimesCreateEncryptorInstanceCalled
Microsoft.AspNetCore.DataProtection.Tests (10)
KeyManagement\KeyRingTests.cs (10)
25Assert.Equal(0, key1.NumTimesCreateEncryptorInstanceCalled); 27Assert.Equal(1, key1.NumTimesCreateEncryptorInstanceCalled); 29Assert.Equal(1, key1.NumTimesCreateEncryptorInstanceCalled); // should've been cached 76Assert.Equal(0, key1.NumTimesCreateEncryptorInstanceCalled); 79Assert.Equal(1, key1.NumTimesCreateEncryptorInstanceCalled); 82Assert.Equal(1, key1.NumTimesCreateEncryptorInstanceCalled); 83Assert.Equal(0, key2.NumTimesCreateEncryptorInstanceCalled); 86Assert.Equal(1, key2.NumTimesCreateEncryptorInstanceCalled); 89Assert.Equal(1, key2.NumTimesCreateEncryptorInstanceCalled); 91Assert.Equal(1, key2.NumTimesCreateEncryptorInstanceCalled);