60 references to AddDays
IIS.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\ClientCertificateFixture.cs (1)
47var notBefore = DateTimeOffset.Now.AddDays(-1);
IIS.LongTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\ClientCertificateFixture.cs (1)
47var notBefore = DateTimeOffset.Now.AddDays(-1);
IIS.NewHandler.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\ClientCertificateFixture.cs (1)
47var notBefore = DateTimeOffset.Now.AddDays(-1);
IIS.NewShim.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\ClientCertificateFixture.cs (1)
47var notBefore = DateTimeOffset.Now.AddDays(-1);
IIS.ShadowCopy.Tests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\ClientCertificateFixture.cs (1)
47var notBefore = DateTimeOffset.Now.AddDays(-1);
IISExpress.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\ClientCertificateFixture.cs (1)
47var notBefore = DateTimeOffset.Now.AddDays(-1);
InMemory.FunctionalTests (2)
src\Servers\Kestrel\shared\test\CertificateAuthority.cs (2)
838X509Certificate2 rootCert = rootReq.CreateSelfSigned(start.AddDays(-2), end.AddDays(2));
Microsoft.AspNetCore.DataProtection.Tests (16)
KeyManagement\DefaultKeyResolverTests.cs (9)
290creationDate: now.AddDays(-3), // Propagated 291activationDate: now.AddDays(-1), // Activated 292expirationDate: now.AddDays(14), // Unexpired 329var creation1 = now.AddDays(-3); 330var activation1 = creation1.AddDays(2); 331var expiration1 = creation1.AddDays(90); 405var creation = now.AddDays(-3); 406var activation = creation.AddDays(2); 407var expiration = creation.AddDays(90);
KeyManagement\DeferredKeyTests.cs (2)
21var activationDate = creationDate.AddDays(2); 22var expirationDate = creationDate.AddDays(90);
KeyManagement\KeyRingProviderTests.cs (1)
925string.Format(CultureInfo.InvariantCulture, "{0:u}", now.AddDays(90)));
KeyManagement\KeyTests.cs (2)
18var activationDate = creationDate.AddDays(2); 19var expirationDate = creationDate.AddDays(90);
KeyManagement\XmlKeyManagerTests.cs (2)
808var activationDate = creationDate.AddDays(2); 809var expirationDate = creationDate.AddDays(90);
Microsoft.AspNetCore.Http.Results.Tests (12)
PhysicalFileResultTest.cs (1)
26var lastModified = DateTimeOffset.MinValue.AddDays(1);
src\Shared\ResultsTests\FileContentResultTestBase.cs (2)
135var lastModified = DateTimeOffset.MinValue.AddDays(1); 169var lastModified = DateTimeOffset.MinValue.AddDays(1);
src\Shared\ResultsTests\FileStreamResultTestBase.cs (1)
153var lastModified = DateTimeOffset.MinValue.AddDays(1);
src\Shared\ResultsTests\PhysicalFileResultTestBase.cs (2)
245requestHeaders.IfModifiedSince = DateTimeOffset.MinValue.AddDays(1); 300requestHeaders.IfUnmodifiedSince = DateTimeOffset.MinValue.AddDays(1);
src\Shared\ResultsTests\VirtualFileResultTestBase.cs (6)
56requestHeaders.IfUnmodifiedSince = DateTimeOffset.MinValue.AddDays(1); 199requestHeaders.IfUnmodifiedSince = DateTimeOffset.MinValue.AddDays(1); 232requestHeaders.IfUnmodifiedSince = DateTimeOffset.MinValue.AddDays(1); 299requestHeaders.IfModifiedSince = DateTimeOffset.MinValue.AddDays(1); 335requestHeaders.IfUnmodifiedSince = DateTimeOffset.MinValue.AddDays(1); 513var lastModified = DateTimeOffset.MinValue.AddDays(1);
Microsoft.AspNetCore.Mvc.Core.Test (15)
FileResultHelperTest.cs (3)
264httpRequestHeaders.IfModifiedSince = DateTimeOffset.MinValue.AddDays(1); 291var lastModified = DateTimeOffset.MinValue.AddDays(1); 303httpRequestHeaders.IfModifiedSince = DateTimeOffset.MinValue.AddDays(2);
PhysicalFileResultTest.cs (1)
46var lastModified = DateTimeOffset.MinValue.AddDays(1);
src\Shared\ResultsTests\FileContentResultTestBase.cs (2)
135var lastModified = DateTimeOffset.MinValue.AddDays(1); 169var lastModified = DateTimeOffset.MinValue.AddDays(1);
src\Shared\ResultsTests\FileStreamResultTestBase.cs (1)
153var lastModified = DateTimeOffset.MinValue.AddDays(1);
src\Shared\ResultsTests\PhysicalFileResultTestBase.cs (2)
245requestHeaders.IfModifiedSince = DateTimeOffset.MinValue.AddDays(1); 300requestHeaders.IfUnmodifiedSince = DateTimeOffset.MinValue.AddDays(1);
src\Shared\ResultsTests\VirtualFileResultTestBase.cs (6)
56requestHeaders.IfUnmodifiedSince = DateTimeOffset.MinValue.AddDays(1); 199requestHeaders.IfUnmodifiedSince = DateTimeOffset.MinValue.AddDays(1); 232requestHeaders.IfUnmodifiedSince = DateTimeOffset.MinValue.AddDays(1); 299requestHeaders.IfModifiedSince = DateTimeOffset.MinValue.AddDays(1); 335requestHeaders.IfUnmodifiedSince = DateTimeOffset.MinValue.AddDays(1); 513var lastModified = DateTimeOffset.MinValue.AddDays(1);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (3)
PinnedBlockMemoryPoolFactoryTests.cs (1)
66var timeProvider = new FakeTimeProvider(DateTimeOffset.UtcNow.AddDays(1));
src\Servers\Kestrel\shared\test\CertificateAuthority.cs (2)
838X509Certificate2 rootCert = rootReq.CreateSelfSigned(start.AddDays(-2), end.AddDays(2));
Microsoft.AspNetCore.Server.Kestrel.Tests (1)
KestrelConfigurationLoaderTests.cs (1)
937var notBefore = DateTimeOffset.UtcNow.AddDays(-1);
Microsoft.AspNetCore.Testing (1)
FakeSslCertificateFactory.cs (1)
42return request.CreateSelfSigned(DateTimeOffset.UtcNow.AddDays(-1), DateTimeOffset.UtcNow.AddYears(1));
Microsoft.DotNet.Build.Tasks.Feed (1)
src\common\AzureStorageUtils.cs (1)
153ExpiresOn = DateTimeOffset.UtcNow.AddDays(tokenExpirationInDays)
Microsoft.Net.Http.Headers.Tests (1)
HeaderUtilitiesTest.cs (1)
44data.Add(date.AddDays(i), quoted);
WebTransportInteractiveSampleApp (1)
Program.cs (1)
194using var crt = req.CreateSelfSigned(now, now.AddDays(14)); // 14 days is the max duration of a certificate for this
WebTransportSampleApp (1)
Program.cs (1)
80using var crt = req.CreateSelfSigned(now, now.AddDays(14)); // 14 days is the max duration of a certificate for this