29 references to CreateKey
Microsoft.AspNetCore.DataProtection.Tests (29)
KeyManagement\DefaultKeyResolverTests.cs (29)
39var key1 = CreateKey("2015-03-01 00:00:00Z", "2016-03-01 00:00:00Z"); 40var key2 = CreateKey("2016-03-01 00:00:00Z", "2017-03-01 00:00:00Z"); 55var key1 = CreateKey("2015-03-01 00:00:00Z", "2016-03-01 00:00:00Z"); 56var key2 = CreateKey("2016-03-01 00:00:00Z", "2017-03-01 00:00:00Z"); 71var key1 = CreateKey("2016-03-01 00:00:00Z", "2017-03-01 00:00:00Z"); 86var key1 = CreateKey("2015-03-01 00:00:00Z", "2016-03-01 00:00:00Z"); 101var key1 = CreateKey("2015-03-01 00:00:00Z", "2016-03-01 00:00:00Z"); 102var key2 = CreateKey("2016-03-01 00:00:00Z", "2017-03-01 00:00:00Z", isRevoked: true); 103var key3 = CreateKey("2016-03-01 00:00:00Z", "2016-03-02 00:00:00Z"); // key expires too soon 118var key1 = CreateKey("2015-03-01 00:00:00Z", "2016-03-01 00:00:00Z"); 119var key2 = CreateKey("2015-03-02 00:00:00Z", "2016-03-01 00:00:00Z", isRevoked: true); 133var key1 = CreateKey("2015-03-01 00:00:00Z", "2016-03-01 00:00:00Z"); 134var key2 = CreateKey("2015-03-02 00:00:00Z", "2016-03-01 00:00:00Z", createEncryptorThrows: true); 150var key1 = CreateKey("2015-03-01 00:00:00Z", "2016-03-01 00:00:00Z"); 165var key1 = CreateKey("2015-03-01 00:00:00Z", "2016-03-01 00:00:00Z"); 180var key1 = CreateKey("2015-03-01 00:00:00Z", "2014-03-01 00:00:00Z"); // expiration before activation should never occur 181var key2 = CreateKey("2015-03-01 00:01:00Z", "2015-04-01 00:00:00Z", isRevoked: true); 182var key3 = CreateKey("2015-03-01 00:02:00Z", "2015-04-01 00:00:00Z"); 197var key1 = CreateKey("2010-01-01 00:00:00Z", "2010-01-01 00:00:00Z", creationDate: "2000-01-01 00:00:00Z"); 198var key2 = CreateKey("2010-01-01 00:00:00Z", "2010-01-01 00:00:00Z", creationDate: "2000-01-02 00:00:00Z"); 199var key3 = CreateKey("2010-01-01 00:00:00Z", "2010-01-01 00:00:00Z", creationDate: "2000-01-03 00:00:00Z", isRevoked: true); 200var key4 = CreateKey("2010-01-01 00:00:00Z", "2010-01-01 00:00:00Z", creationDate: "2000-01-04 00:00:00Z"); 214var key1 = CreateKey("2010-01-01 00:00:00Z", "2010-01-01 00:00:00Z", creationDate: "2000-01-01 00:00:00Z"); 215var key2 = CreateKey("2010-01-01 00:00:00Z", "2010-01-01 00:00:00Z", creationDate: "2000-01-02 00:00:00Z"); 216var key3 = CreateKey("2010-01-01 00:00:00Z", "2010-01-01 00:00:00Z", creationDate: "2000-01-03 00:00:00Z", createEncryptorThrows: true); 217var key4 = CreateKey("2010-01-01 00:00:00Z", "2010-01-01 00:00:00Z", creationDate: "2000-01-04 00:00:00Z"); 233var key1 = CreateKey("2010-01-01 00:00:00Z", "2010-01-01 00:00:00Z", creationDate: "2000-01-03 00:00:00Z", isRevoked: true); 234var key2 = CreateKey("2010-01-01 00:00:00Z", "2010-01-01 00:00:00Z", creationDate: "2000-01-04 00:00:00Z"); 235var key3 = CreateKey("2010-01-01 00:00:00Z", "2010-01-01 00:00:00Z", creationDate: "2000-01-05 00:00:00Z");