29 references to CreateKey
Microsoft.AspNetCore.DataProtection.Tests (29)
KeyManagement\DefaultKeyResolverTests.cs (29)
35var key1 = CreateKey("2015-03-01 00:00:00Z", "2016-03-01 00:00:00Z"); 36var key2 = CreateKey("2016-03-01 00:00:00Z", "2017-03-01 00:00:00Z"); 51var key1 = CreateKey("2015-03-01 00:00:00Z", "2016-03-01 00:00:00Z"); 52var key2 = CreateKey("2016-03-01 00:00:00Z", "2017-03-01 00:00:00Z"); 67var key1 = CreateKey("2016-03-01 00:00:00Z", "2017-03-01 00:00:00Z"); 82var key1 = CreateKey("2015-03-01 00:00:00Z", "2016-03-01 00:00:00Z"); 97var key1 = CreateKey("2015-03-01 00:00:00Z", "2016-03-01 00:00:00Z"); 98var key2 = CreateKey("2016-03-01 00:00:00Z", "2017-03-01 00:00:00Z", isRevoked: true); 99var key3 = CreateKey("2016-03-01 00:00:00Z", "2016-03-02 00:00:00Z"); // key expires too soon 114var key1 = CreateKey("2015-03-01 00:00:00Z", "2016-03-01 00:00:00Z"); 115var key2 = CreateKey("2015-03-02 00:00:00Z", "2016-03-01 00:00:00Z", isRevoked: true); 129var key1 = CreateKey("2015-03-01 00:00:00Z", "2016-03-01 00:00:00Z"); 130var key2 = CreateKey("2015-03-02 00:00:00Z", "2016-03-01 00:00:00Z", createEncryptorThrows: true); 146var key1 = CreateKey("2015-03-01 00:00:00Z", "2016-03-01 00:00:00Z"); 161var key1 = CreateKey("2015-03-01 00:00:00Z", "2016-03-01 00:00:00Z"); 176var key1 = CreateKey("2015-03-01 00:00:00Z", "2014-03-01 00:00:00Z"); // expiration before activation should never occur 177var key2 = CreateKey("2015-03-01 00:01:00Z", "2015-04-01 00:00:00Z", isRevoked: true); 178var key3 = CreateKey("2015-03-01 00:02:00Z", "2015-04-01 00:00:00Z"); 193var key1 = CreateKey("2010-01-01 00:00:00Z", "2010-01-01 00:00:00Z", creationDate: "2000-01-01 00:00:00Z"); 194var key2 = CreateKey("2010-01-01 00:00:00Z", "2010-01-01 00:00:00Z", creationDate: "2000-01-02 00:00:00Z"); 195var key3 = CreateKey("2010-01-01 00:00:00Z", "2010-01-01 00:00:00Z", creationDate: "2000-01-03 00:00:00Z", isRevoked: true); 196var key4 = CreateKey("2010-01-01 00:00:00Z", "2010-01-01 00:00:00Z", creationDate: "2000-01-04 00:00:00Z"); 210var key1 = CreateKey("2010-01-01 00:00:00Z", "2010-01-01 00:00:00Z", creationDate: "2000-01-01 00:00:00Z"); 211var key2 = CreateKey("2010-01-01 00:00:00Z", "2010-01-01 00:00:00Z", creationDate: "2000-01-02 00:00:00Z"); 212var key3 = CreateKey("2010-01-01 00:00:00Z", "2010-01-01 00:00:00Z", creationDate: "2000-01-03 00:00:00Z", createEncryptorThrows: true); 213var key4 = CreateKey("2010-01-01 00:00:00Z", "2010-01-01 00:00:00Z", creationDate: "2000-01-04 00:00:00Z"); 229var key1 = CreateKey("2010-01-01 00:00:00Z", "2010-01-01 00:00:00Z", creationDate: "2000-01-03 00:00:00Z", isRevoked: true); 230var key2 = CreateKey("2010-01-01 00:00:00Z", "2010-01-01 00:00:00Z", creationDate: "2000-01-04 00:00:00Z"); 231var key3 = CreateKey("2010-01-01 00:00:00Z", "2010-01-01 00:00:00Z", creationDate: "2000-01-05 00:00:00Z");