1 write to Name
Microsoft.Net.Http.Headers (1)
SetCookieHeaderValue.cs (1)
78Name = name;
45 references to Name
Microsoft.AspNetCore.Authentication.Test (7)
OpenIdConnect\OpenIdConnectChallengeTests.cs (2)
440var nonceCookie = challengeCookies.Where(cookie => cookie.Name.StartsWith(OpenIdConnectDefaults.CookieNoncePrefix, StringComparison.Ordinal)).Single(); 448var correlationCookie = challengeCookies.Where(cookie => cookie.Name.StartsWith(".AspNetCore.Correlation.", StringComparison.Ordinal)).Single();
TwitterTests.cs (3)
216var cookie = new CookieHeaderValue(setCookieValue.Name, setCookieValue.Value); 266var cookie = new CookieHeaderValue(setCookieValue.Name, setCookieValue.Value); 373var cookie = new CookieHeaderValue(setCookieValue.Name, setCookieValue.Value);
WsFederation\WsFederationTest.cs (1)
269request.Headers.Add(HeaderNames.Cookie, new CookieHeaderValue(cookie.Name, cookie.Value).ToString());
WsFederation\WsFederationTest_Handler.cs (1)
267request.Headers.Add(HeaderNames.Cookie, new CookieHeaderValue(cookie.Name, cookie.Value).ToString());
Microsoft.AspNetCore.CookiePolicy.Test (20)
CookieConsentTests.cs (16)
220Assert.Equal(".AspNet.Consent", consentCookie.Name.AsSpan()); 227Assert.Equal("Test", testCookie.Name.AsSpan()); 270Assert.Equal(".AspNet.Consent1", consentCookie.Name.AsSpan()); 401Assert.Equal("Test", testCookie.Name.AsSpan()); 406Assert.Equal(".AspNet.Consent", consentCookie.Name.AsSpan()); 448Assert.Equal(".AspNet.Consent1", consentCookie.Name.AsSpan()); 513Assert.Equal("Test", testCookie.Name.AsSpan()); 577Assert.Equal(".AspNet.Consent", consentCookie.Name.AsSpan()); 585Assert.Equal(consentCookie.Name, manualCookie.Name); 630Assert.Equal(".AspNet.Consent1", consentCookie.Name.AsSpan()); 638Assert.Equal(consentCookie.Name, manualCookie.Name); 675Assert.Equal(".AspNet.Consent", consentCookie.Name.AsSpan()); 683Assert.Equal(consentCookie.Name, manualCookie.Name);
CookiePolicyTests.cs (4)
401Assert.Equal("TestCookie", cookie.Name.AsSpan()); 453Assert.Equal("TestCookie", cookie.Name.AsSpan()); 461Assert.Equal("TestCookieC1", cookie.Name.AsSpan()); 468Assert.Equal("TestCookieC2", cookie.Name.AsSpan());
Microsoft.AspNetCore.Http.Abstractions.Tests (1)
CookieBuilderTests.cs (1)
67Assert.Equal("name", cookie.Name.AsSpan());
Microsoft.AspNetCore.Mvc.FunctionalTests (7)
TempDataInCookiesTest.cs (4)
98.FirstOrDefault(setCookieHeader => setCookieHeader.Name == CookieTempDataProvider.CookieName); 131.FirstOrDefault(setCookieHeaderValue => setCookieHeaderValue.Name == CookieTempDataProvider.CookieName); 154.FirstOrDefault(setCookieHeaderValue => setCookieHeaderValue.Name == CookieTempDataProvider.CookieName); 184.FirstOrDefault(setCookieHeaderValue => setCookieHeaderValue.Name == CookieTempDataProvider.CookieName);
TempDataInCookiesUsingCookieConsentTest.cs (1)
116request.Headers.Add("Cookie", new CookieHeaderValue(cookie.Name, cookie.Value).ToString());
TempDataPropertyTest.cs (1)
169request.Headers.Add("Cookie", new CookieHeaderValue(cookie.Name, cookie.Value).ToString());
TempDataTestBase.cs (1)
272request.Headers.Add("Cookie", new CookieHeaderValue(cookie.Name, cookie.Value).ToString());
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (3)
CookieTempDataProviderTest.cs (3)
91Assert.Equal(CookieTempDataProvider.CookieName, setCookieHeader.Name.ToString()); 287Assert.Equal(CookieTempDataProvider.CookieName, cookie.Name.AsSpan()); 329stringBuilder.Append(cookie.Name.AsSpan());
Microsoft.AspNetCore.Session.Tests (5)
SessionTests.cs (5)
204client.DefaultRequestHeaders.Add("Cookie", new CookieHeaderValue(cookie.Name, cookie.Value).ToString()); 264client.DefaultRequestHeaders.Add("Cookie", new CookieHeaderValue(cookie.Name, cookie.Value).ToString()); 322client.DefaultRequestHeaders.Add("Cookie", new CookieHeaderValue(cookie.Name, cookie.Value).ToString()); 426client.DefaultRequestHeaders.Add("Cookie", new CookieHeaderValue(cookie.Name, cookie.Value).ToString()); 496"Cookie", new CookieHeaderValue(cookie.Name, cookie.Value).ToString());
Microsoft.Net.Http.Headers.Tests (2)
SetCookieHeaderValueTest.cs (2)
321Assert.Equal("cookie", header.Name.AsSpan()); 332Assert.Equal(name, header.Name.AsSpan());