1 write to SetCookie
Microsoft.AspNetCore.Identity.InMemory.Test (1)
FunctionalTest.cs (1)
446transaction.SetCookie = transaction.Response.Headers.GetValues("Set-Cookie").FirstOrDefault();
30 references to SetCookie
Microsoft.AspNetCore.Identity.InMemory.Test (30)
FunctionalTest.cs (30)
43Assert.Null(transaction1.SetCookie); 53Assert.Null(transaction1.SetCookie); 57Assert.NotNull(transaction2.SetCookie); 58Assert.DoesNotContain("; expires=", transaction2.SetCookie); 63Assert.Null(transaction3.SetCookie); 88Assert.Null(transaction1.SetCookie); 92Assert.NotNull(transaction2.SetCookie); 93Assert.DoesNotContain("; expires=", transaction2.SetCookie); 97Assert.Null(transaction3.SetCookie); 103Assert.Null(transaction4.SetCookie); 109Assert.Null(transaction5.SetCookie); 127Assert.Null(transaction1.SetCookie); 131Assert.NotNull(transaction2.SetCookie); 134Assert.Contains("; expires=", transaction2.SetCookie); 138Assert.DoesNotContain("; expires=", transaction2.SetCookie); 143Assert.Null(transaction3.SetCookie); 149Assert.Null(transaction4.SetCookie); 155Assert.NotNull(transaction5.SetCookie); 186Assert.Null(transaction1.SetCookie); 190Assert.NotNull(transaction2.SetCookie); 191Assert.DoesNotContain("; expires=", transaction2.SetCookie); 195Assert.Null(transaction3.SetCookie); 201Assert.Null(transaction4.SetCookie); 207Assert.NotNull(transaction5.SetCookie); 226Assert.Null(transaction1.SetCookie); 231var setCookie = transaction2.SetCookie; 255Assert.Null(transaction1.SetCookie); 260var setCookie = transaction2.SetCookie; 448if (!string.IsNullOrEmpty(transaction.SetCookie)) 450transaction.CookieNameValue = transaction.SetCookie.Split(new[] { ';' }, 2).First();