2 writes to Value
Microsoft.Net.Http.Headers (1)
SetCookieHeaderValue.cs (1)
79Value = value;
Microsoft.Net.Http.Headers.Tests (1)
SetCookieHeaderValueTest.cs (1)
342cookie.Value = "value1";
47 references to Value
Microsoft.AspNetCore.Authentication.Test (11)
OpenIdConnect\OpenIdConnectChallengeTests.cs (2)
445Assert.Equal("N", nonceCookie.Value.AsSpan()); 453Assert.False(StringSegment.IsNullOrEmpty(correlationCookie.Value));
OpenIdConnect\OpenIdConnectEventTests.cs (1)
1018Assert.True(StringSegment.IsNullOrEmpty(parsedValues.Single().Value));
OpenIdConnect\OpenIdConnectEventTests_Handler.cs (1)
1018Assert.True(StringSegment.IsNullOrEmpty(parsedValues.Single().Value));
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 (2)
267if (cookie.Value.HasValue) 269request.Headers.Add(HeaderNames.Cookie, new CookieHeaderValue(cookie.Name, cookie.Value).ToString());
WsFederation\WsFederationTest_Handler.cs (2)
265if (cookie.Value.HasValue) 267request.Headers.Add(HeaderNames.Cookie, new CookieHeaderValue(cookie.Name, cookie.Value).ToString());
Microsoft.AspNetCore.CookiePolicy.Test (17)
CookieConsentTests.cs (16)
221Assert.Equal("yes", consentCookie.Value.AsSpan()); 228Assert.Equal("Value", testCookie.Value.AsSpan()); 271Assert.Equal("yes1", consentCookie.Value.AsSpan()); 402Assert.Equal("Value1", testCookie.Value.AsSpan()); 407Assert.Equal("", consentCookie.Value.AsSpan()); 449Assert.Equal("", consentCookie.Value.AsSpan()); 514Assert.Equal("", testCookie.Value.AsSpan()); 578Assert.Equal("yes", consentCookie.Value.AsSpan()); 586Assert.Equal(consentCookie.Value, manualCookie.Value); 631Assert.Equal("yes1", consentCookie.Value.AsSpan()); 639Assert.Equal(consentCookie.Value, manualCookie.Value); 676Assert.Equal("true", consentCookie.Value.AsSpan()); 684Assert.Equal(consentCookie.Value, manualCookie.Value);
CookiePolicyTests.cs (1)
454Assert.Equal("chunks-2", cookie.Value.AsSpan());
Microsoft.AspNetCore.Http.Abstractions.Tests (1)
CookieBuilderTests.cs (1)
68Assert.Equal("value", cookie.Value.AsSpan());
Microsoft.AspNetCore.Mvc.FunctionalTests (6)
TempDataInCookiesTest.cs (3)
82Assert.NotNull(cookieTempDataProviderCookie.Value.Value); 100Assert.Equal(string.Empty, setCookieHeaderValue.Value.AsSpan()); 156Assert.Equal(string.Empty, setCookieHeader.Value.AsSpan());
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)
92Assert.Equal(string.Empty, setCookieHeader.Value.ToString()); 288Assert.Equal(string.Empty, cookie.Value.AsSpan()); 331stringBuilder.Append(cookie.Value.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 (4)
SetCookieHeaderValueTest.cs (4)
322Assert.Equal(string.Empty, header.Value.AsSpan()); 333Assert.Equal(value, header.Value.AsSpan()); 340Assert.Equal(string.Empty, cookie.Value.AsSpan()); 343Assert.Equal("value1", cookie.Value.AsSpan());