1 override of Cookies
Microsoft.AspNetCore.Http (1)
83 references to Cookies
BasicWebSite (2)
CookiePolicySample (4)
GenericHostWebSite (2)
HttpAbstractions.SampleApp (1)
Microsoft.AspNetCore.Antiforgery (1)
Microsoft.AspNetCore.Antiforgery.Test (4)
Microsoft.AspNetCore.Authentication (2)
Microsoft.AspNetCore.Authentication.Cookies (3)
Microsoft.AspNetCore.Authentication.OpenIdConnect (5)
Microsoft.AspNetCore.Authentication.Twitter (2)
Microsoft.AspNetCore.CookiePolicy.Test (47)
CookieConsentTests.cs (18)
27context.Response.Cookies.Append("Test", "Value");
46context.Response.Cookies.Append("Test", "Value");
65context.Response.Cookies.Append("Test", "Value", new CookieOptions() { IsEssential = false });
91context.Response.Cookies.Append("Test", "Value", new CookieOptions() { IsEssential = false });
110context.Response.Cookies.Append("Test", "Value", new CookieOptions() { IsEssential = true });
140context.Response.Cookies.Append("Test", "Value", new CookieOptions() { IsEssential = true });
163context.Response.Cookies.Append("Test", "Value");
186context.Response.Cookies.Append("Test", "Value");
213context.Response.Cookies.Append("Test", "Value");
301context.Response.Cookies.Append("Test", "Value");
331Assert.Throws<InvalidOperationException>(() => context.Response.Cookies.Append("Test", "Value"));
362context.Response.Cookies.Append("Test", "Value");
386context.Response.Cookies.Append("Test", "Value1");
394context.Response.Cookies.Append("Test", "Value2");
471context.Response.Cookies.Append("Test", "Value1");
482context.Response.Cookies.Append("Test", "Value2");
506context.Response.Cookies.Delete("Test");
540context.Response.Cookies.Delete("Test");
CookiePolicyTests.cs (26)
23context.Response.Cookies.Append("A", "A");
24context.Response.Cookies.Append("B", "B", new CookieOptions { Secure = false });
25context.Response.Cookies.Append("C", "C", new CookieOptions());
26context.Response.Cookies.Append("D", "D", new CookieOptions { Secure = true });
31context.Response.Cookies.Append("A", "A");
32context.Response.Cookies.Append("B", "B", new CookieOptions { HttpOnly = false });
33context.Response.Cookies.Append("C", "C", new CookieOptions());
34context.Response.Cookies.Append("D", "D", new CookieOptions { HttpOnly = true });
39context.Response.Cookies.Append("A", "A");
40context.Response.Cookies.Append("B", "B", new CookieOptions());
41context.Response.Cookies.Append("C", "C", new CookieOptions { SameSite = Http.SameSiteMode.None });
42context.Response.Cookies.Append("D", "D", new CookieOptions { SameSite = Http.SameSiteMode.Lax });
43context.Response.Cookies.Append("E", "E", new CookieOptions { SameSite = Http.SameSiteMode.Strict });
44context.Response.Cookies.Append("F", "F", new CookieOptions { SameSite = (Http.SameSiteMode)(-1) });
257context.Response.Cookies.Append("A", "A");
258context.Response.Cookies.Append("B", "B", new CookieOptions { Secure = false });
259context.Response.Cookies.Append("C", "C", new CookieOptions() { SameSite = Http.SameSiteMode.Strict });
260context.Response.Cookies.Append("D", "D", new CookieOptions { Secure = true });
296context.Response.Cookies.Delete("A");
297context.Response.Cookies.Delete("B", new CookieOptions { Secure = false });
298context.Response.Cookies.Delete("C", new CookieOptions());
299context.Response.Cookies.Delete("D", new CookieOptions { Secure = true });
338Assert.Throws<NotImplementedException>(() => context.Response.Cookies.Delete("A"));
339Assert.Throws<NotImplementedException>(() => context.Response.Cookies.Delete("A", new CookieOptions()));
340Assert.Throws<NotImplementedException>(() => context.Response.Cookies.Append("A", "A"));
341Assert.Throws<NotImplementedException>(() => context.Response.Cookies.Append("A", "A", new CookieOptions()));
Microsoft.AspNetCore.Mvc.Core (3)
Microsoft.AspNetCore.OutputCaching.Tests (1)
Microsoft.AspNetCore.Rewrite (1)
Microsoft.AspNetCore.Session (1)
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (1)
SignalR.Client.FunctionalTestApp (3)