32 references to AddMinutes
Aspire.Hosting.Tests (3)
VersionChecking\VersionCheckServiceTests.cs (3)
71var lastCheckDate = currentDate.AddMinutes(-1); 106var lastCheckDate = currentDate.AddMinutes(-1); 146var lastCheckDate = currentDate.AddMinutes(-1);
Microsoft.AspNetCore.CookiePolicy.Test (2)
CookieChunkingTests.cs (2)
35Expires = now.AddMinutes(5), 43Assert.Equal($"TestCookie={testString}; expires={now.AddMinutes(5).ToString("R")}; max-age=300; domain=foo.com; path=/bar; secure; samesite=strict; httponly", values[0]);
Microsoft.AspNetCore.DataProtection.Tests (4)
KeyManagement\XmlKeyManagerTests.cs (4)
948var key1 = keyManager.CreateNewKey(activationTime, activationTime.AddMinutes(10)); 950var key2 = keyManager.CreateNewKey(activationTime, activationTime.AddMinutes(10)); 952var key3 = keyManager.CreateNewKey(activationTime, activationTime.AddMinutes(10)); 953var key4 = keyManager.CreateNewKey(activationTime, activationTime.AddMinutes(10));
Microsoft.AspNetCore.Identity.Specification.Tests (9)
UserManagerSpecificationTests.cs (9)
1160Assert.True(await mgr.GetLockoutEndDateAsync(user) > DateTimeOffset.UtcNow.AddMinutes(55)); 1182Assert.False(await mgr.GetLockoutEndDateAsync(user) > DateTimeOffset.UtcNow.AddMinutes(55)); 1186Assert.True(await mgr.GetLockoutEndDateAsync(user) > DateTimeOffset.UtcNow.AddMinutes(55)); 1207Assert.False(await mgr.GetLockoutEndDateAsync(user) > DateTimeOffset.UtcNow.AddMinutes(55)); 1212Assert.False(await mgr.GetLockoutEndDateAsync(user) > DateTimeOffset.UtcNow.AddMinutes(55)); 1215Assert.False(await mgr.GetLockoutEndDateAsync(user) > DateTimeOffset.UtcNow.AddMinutes(55)); 1238Assert.False(await mgr.GetLockoutEndDateAsync(user) > DateTimeOffset.UtcNow.AddMinutes(55)); 1242Assert.True(await mgr.GetLockoutEndDateAsync(user) > DateTimeOffset.UtcNow.AddMinutes(55)); 1318var lockoutEnd = DateTimeOffset.UtcNow.AddMinutes(5);
Microsoft.AspNetCore.Mvc.TagHelpers.Test (10)
CacheTagHelperTest.cs (5)
194var expiresOn = DateTimeOffset.UtcNow.AddMinutes(4); 363currentTime = currentTime.AddMinutes(11); 393ExpiresOn = currentTime.AddMinutes(5) 406currentTime = currentTime.AddMinutes(5).AddSeconds(2); 415ExpiresOn = currentTime.AddMinutes(5)
DistributedCacheTagHelperTest.cs (5)
248var expiresOn = DateTimeOffset.UtcNow.AddMinutes(4); 395currentTime = currentTime.AddMinutes(11); 432ExpiresOn = currentTime.AddMinutes(5) 445currentTime = currentTime.AddMinutes(5).AddSeconds(2); 456ExpiresOn = currentTime.AddMinutes(5)
Microsoft.AspNetCore.Rewrite.Tests (1)
UrlActions\ChangeCookieActionTests.cs (1)
31Assert.Equal($"Cookie=Chocolate%20Chip; expires={HeaderUtilities.FormatDate(now.AddMinutes(1440))}; domain=contoso.com; path=/recipes; secure; httponly", header);
Microsoft.Net.Http.Headers.Tests (1)
HeaderUtilitiesTest.cs (1)
39data.Add(date.AddMinutes(i), quoted);
System.Net.Security (1)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.OCSP.cs (1)
70expiration = DateTimeOffset.UtcNow.AddMinutes(30);
System.Security.Cryptography (1)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.OCSP.cs (1)
70expiration = DateTimeOffset.UtcNow.AddMinutes(30);