1 write to SetCookie
Microsoft.AspNetCore.Authentication.Test (1)
TestExtensions.cs (1)
32transaction.SetCookie = transaction.Response.Headers.GetValues("Set-Cookie").ToList();
51 references to SetCookie
Microsoft.AspNetCore.Authentication.Test (51)
CookieTests.cs (11)
588Assert.NotNull(transaction3.SetCookie[0]); 591var transaction4 = await server.SendAsync("http://example.com/signout", transaction3.SetCookie[0]); 592Assert.Single(transaction4.SetCookie); 593Assert.Contains(".AspNetCore.Cookies=; expires=", transaction4.SetCookie[0]); 1315Assert.StartsWith("One=", transaction.SetCookie[0]); 1343Assert.StartsWith("One=", transaction.SetCookie[0]); 1366Assert.NotNull(transaction.SetCookie); 1389Assert.NotNull(transaction.SetCookie); 1414Assert.Contains(".AspNetCore.Cookies=; expires=", transaction.SetCookie[0]); 1437Assert.Contains(".AspNetCore.Cookies=; expires=", transaction.SetCookie[0]); 1727var cookie = (await server.SendAsync("http://www.example.com/signin")).SetCookie.FirstOrDefault();
FacebookTests.cs (4)
442var nonceCookie = transaction.SetCookie.Single(); 450Assert.Equal(2, transaction.SetCookie.Count); 451Assert.StartsWith(".AspNetCore.Correlation.", transaction.SetCookie[0]); 452Assert.StartsWith(".AspNetCore." + TestExtensions.CookieAuthenticationScheme, transaction.SetCookie[1]);
GoogleTests.cs (26)
138Assert.Contains(transaction.SetCookie, cookie => cookie.StartsWith(".AspNetCore.Correlation.", StringComparison.Ordinal)); 560Assert.Equal(2, transaction.SetCookie.Count); 561Assert.Contains($".AspNetCore.Correlation.{correlationValue}", transaction.SetCookie[0]); 562Assert.Contains(".AspNetCore." + TestExtensions.CookieAuthenticationScheme, transaction.SetCookie[1]); 723Assert.Equal(2, transaction.SetCookie.Count); 724Assert.Contains($".AspNetCore.Correlation.{correlationValue}", transaction.SetCookie[0]); 725Assert.Contains(".AspNetCore." + TestExtensions.CookieAuthenticationScheme, transaction.SetCookie[1]); 763Assert.Equal(2, transaction.SetCookie.Count); 764Assert.Contains($".AspNetCore.Correlation.{correlationValue}", transaction.SetCookie[0]); 765Assert.Contains(".AspNetCore." + TestExtensions.CookieAuthenticationScheme, transaction.SetCookie[1]); 884Assert.Equal(2, transaction.SetCookie.Count); 885Assert.Contains($".AspNetCore.Correlation.{correlationValue}", transaction.SetCookie[0]); // Delete 886Assert.Contains(".AspNetCore." + TestExtensions.CookieAuthenticationScheme, transaction.SetCookie[1]); 928Assert.Equal(2, transaction.SetCookie.Count); 929Assert.Contains($".AspNetCore.Correlation.{correlationValue}", transaction.SetCookie[0]); // Delete 930Assert.Contains(".AspNetCore." + TestExtensions.CookieAuthenticationScheme, transaction.SetCookie[1]); 972Assert.Equal(2, transaction.SetCookie.Count); 973Assert.Contains($".AspNetCore.Correlation.{correlationValue}", transaction.SetCookie[0]); // Delete 974Assert.Contains(".AspNetCore." + TestExtensions.CookieAuthenticationScheme, transaction.SetCookie[1]); 1009Assert.Equal(2, transaction.SetCookie.Count); 1010Assert.Contains($".AspNetCore.Correlation.{correlationValue}", transaction.SetCookie[0]); // Delete 1011Assert.Contains(".AspNetCore." + TestExtensions.CookieAuthenticationScheme, transaction.SetCookie[1]); 1075var nonceCookie = transaction.SetCookie.Single(); 1083Assert.Equal(2, transaction.SetCookie.Count); 1084Assert.StartsWith(".AspNetCore.Correlation.", transaction.SetCookie[0]); 1085Assert.StartsWith(".AspNetCore." + TestExtensions.CookieAuthenticationScheme, transaction.SetCookie[1]);
MicrosoftAccountTests.cs (7)
245Assert.Equal(2, transaction.SetCookie.Count); 246Assert.Contains($".AspNetCore.Correlation.{correlationValue}", transaction.SetCookie[0]); 247Assert.Contains(".AspNetCore." + TestExtensions.CookieAuthenticationScheme, transaction.SetCookie[1]); 342var nonceCookie = transaction.SetCookie.Single(); 350Assert.Equal(2, transaction.SetCookie.Count); 351Assert.StartsWith(".AspNetCore.Correlation.", transaction.SetCookie[0]); 352Assert.StartsWith(".AspNetCore." + TestExtensions.CookieAuthenticationScheme, transaction.SetCookie[1]);
Transaction.cs (3)
23if (SetCookie != null && SetCookie.Count > 0) 25var authCookie = SetCookie.SingleOrDefault(c => c.Contains(".AspNetCore." + TestExtensions.CookieAuthenticationScheme + "="));