107 references to SendAsync
Microsoft.AspNetCore.Authentication.Test (107)
CookieTests.cs (107)
49var transaction = await SendAsync(server, "http://example.com/challenge?X-Requested-With=XMLHttpRequest");
61var transaction = await SendAsync(server, "http://example.com/forbid?X-Requested-With=XMLHttpRequest");
73var transaction = await SendAsync(server, "http://example.com/signout?X-Requested-With=XMLHttpRequest&ReturnUrl=/");
85var transaction = await SendAsync(server, "http://example.com/challenge?X-Requested-With=XMLHttpRequest&ReturnUrl=/");
98var transaction = await SendAsync(server, "http://example.com/protected/CustomRedirect");
136var transaction = await SendAsync(server, "http://example.com/testpath");
199var transaction1 = await SendAsync(server, "http://example.com/testpath");
201var transaction2 = await SendAsync(server, "http://example.com/me/Cookies", transaction1.CookieNameValue);
211var transaction3 = await SendAsync(server, "http://example.com/signinalice", transaction1.CookieNameValue);
213var transaction4 = await SendAsync(server, "http://example.com/me/Cookies", transaction3.CookieNameValue);
234var transaction1 = await SendAsync(server, "http://example.com/testpath");
236var transaction2 = await SendAsync(server, "http://example.com/me/Cookies", transaction1.CookieNameValue);
246var transaction3 = await SendAsync(server, "http://example.com/me/Cookies", transaction1.CookieNameValue);
269var transaction = await SendAsync(server, "http://example.com/testpath");
306await Assert.ThrowsAsync<InvalidOperationException>(async () => await SendAsync(server, "http://example.com/testpath"));
319await Assert.ThrowsAsync<InvalidOperationException>(async () => await SendAsync(server, "http://example.com/testpath"));
342var transaction = await SendAsync(server, requestUri);
371var transaction1 = await SendAsync(server1, "http://example.com/base/testpath");
393var transaction2 = await SendAsync(server2, "http://example.com/base/testpath");
412var transaction1 = await SendAsync(server, "http://example.com/testpath");
414var transaction2 = await SendAsync(server, "http://example.com/me/Cookies", transaction1.CookieNameValue);
428var transaction1 = await SendAsync(server, "http://example.com/testpath");
430var transaction2 = await SendAsync(server, "http://example.com/me/Cookies", transaction1.CookieNameValue);
447var transaction1 = await SendAsync(server, "http://example.com/testpath");
449var transaction2 = await SendAsync(server, "http://example.com/me/Cookies", transaction1.CookieNameValue);
453var transaction3 = await SendAsync(server, "http://example.com/me/Cookies", transaction1.CookieNameValue);
457var transaction4 = await SendAsync(server, "http://example.com/me/Cookies", transaction1.CookieNameValue);
481var transaction1 = await SendAsync(server, "http://example.com/testpath");
483var transaction2 = await SendAsync(server, "http://example.com/me/Cookies", transaction1.CookieNameValue);
487var transaction3 = await SendAsync(server, "http://example.com/me/Cookies", transaction1.CookieNameValue);
491var transaction4 = await SendAsync(server, "http://example.com/me/Cookies", transaction1.CookieNameValue);
521var transaction1 = await SendAsync(server, "http://example.com/testpath");
525var transaction2 = await SendAsync(server, "http://example.com/me/Cookies", transaction1.CookieNameValue);
552var transaction1 = await SendAsync(server, "http://example.com/testpath");
554var transaction2 = await SendAsync(server, "http://example.com/me/Cookies", transaction1.CookieNameValue);
580var transaction1 = await SendAsync(server, "http://example.com/testpath");
583var transaction2 = await SendAsync(server, "http://example.com/me/Cookies", transaction1.CookieNameValue);
617var transaction1 = await SendAsync(server, "http://example.com/testpath");
619var transaction2 = await SendAsync(server, "http://example.com/me/Cookies", transaction1.CookieNameValue);
625var transaction3 = await SendAsync(server, "http://example.com/me/Cookies", transaction2.CookieNameValue);
631var transaction4 = await SendAsync(server, "http://example.com/me/Cookies", transaction1.CookieNameValue);
637var transaction5 = await SendAsync(server, "http://example.com/me/Cookies", transaction2.CookieNameValue);
662var transaction1 = await SendAsync(server, "http://example.com/testpath");
664var transaction2 = await SendAsync(server, "http://example.com/me/Cookies", transaction1.CookieNameValue);
695var transaction1 = await SendAsync(server, "http://example.com/testpath");
697var transaction2 = await SendAsync(server, "http://example.com/me/Cookies", transaction1.CookieNameValue);
700var transaction3 = await SendAsync(server, "http://example.com/me/Cookies", transaction1.CookieNameValue);
706var transaction4 = await SendAsync(server, "http://example.com/me/Cookies", transaction1.CookieNameValue);
713var transaction5 = await SendAsync(server, "http://example.com/me/Cookies", transaction4.CookieNameValue);
738var transaction1 = await SendAsync(server, "http://example.com/testpath");
740var transaction2 = await SendAsync(server, "http://example.com/me/Cookies", transaction1.CookieNameValue);
746var transaction3 = await SendAsync(server, "http://example.com/me/Cookies", transaction2.CookieNameValue);
752var transaction4 = await SendAsync(server, "http://example.com/me/Cookies", transaction3.CookieNameValue);
758var transaction5 = await SendAsync(server, "http://example.com/me/Cookies", transaction4.CookieNameValue);
794var transaction1 = await SendAsync(server, "http://example.com/testpath");
796var transaction2 = await SendAsync(server, "http://example.com/me/Cookies", transaction1.CookieNameValue);
802var transaction3 = await SendAsync(server, "http://example.com/me/Cookies", transaction2.CookieNameValue);
808var transaction4 = await SendAsync(server, "http://example.com/me/Cookies", transaction3.CookieNameValue);
814var transaction5 = await SendAsync(server, "http://example.com/me/Cookies", transaction4.CookieNameValue);
853var transaction1 = await SendAsync(server, "http://example.com/testpath");
855var transaction2 = await SendAsync(server, "http://example.com/me/Cookies", transaction1.CookieNameValue);
861var transaction3 = await SendAsync(server, "http://example.com/me/Cookies", transaction2.CookieNameValue);
867var transaction4 = await SendAsync(server, "http://example.com/me/Cookies", transaction3.CookieNameValue);
873var transaction5 = await SendAsync(server, "http://example.com/me/Cookies", transaction4.CookieNameValue);
899var transaction1 = await SendAsync(server, "http://example.com/testpath");
901var transaction2 = await SendAsync(server, "http://example.com/me/Cookies", transaction1.CookieNameValue);
907var transaction3 = await SendAsync(server, "http://example.com/me/Cookies", transaction2.CookieNameValue);
913var transaction4 = await SendAsync(server, "http://example.com/me/Cookies", transaction1.CookieNameValue);
919var transaction5 = await SendAsync(server, "http://example.com/me/Cookies", transaction2.CookieNameValue);
951var transaction1 = await SendAsync(server, "http://example.com/testpath");
953var transaction2 = await SendAsync(server, "http://example.com/me/Cookies", transaction1.CookieNameValue);
965var transaction3 = await SendAsync(server, "http://example.com/me/Cookies", transaction2.CookieNameValue);
971var transaction4 = await SendAsync(server, "http://example.com/me/Cookies", transaction3.CookieNameValue);
998var transaction1 = await SendAsync(server, "http://example.com/testpath");
1000var transaction2 = await SendAsync(server, "http://example.com/me/Cookies", transaction1.CookieNameValue);
1006var transaction3 = await SendAsync(server, "http://example.com/me/Cookies", transaction1.CookieNameValue);
1012var transaction4 = await SendAsync(server, "http://example.com/me/Cookies", transaction1.CookieNameValue);
1028var transaction1 = await SendAsync(server, "http://example.com/testpath");
1030var transaction2 = await SendAsync(server, "http://example.com/me/Cookies", transaction1.CookieNameValue);
1036var transaction3 = await SendAsync(server, "http://example.com/me/Cookies", transaction1.CookieNameValue);
1043var transaction4 = await SendAsync(server, "http://example.com/me/Cookies", transaction1.CookieNameValue);
1049var transaction5 = await SendAsync(server, "http://example.com/me/Cookies", transaction4.CookieNameValue);
1074var transaction1 = await SendAsync(server, "http://example.com/testpath");
1076var transaction2 = await SendAsync(server, "http://example.com/me/Cookies", transaction1.CookieNameValue);
1082var transaction3 = await SendAsync(server, "http://example.com/me/Cookies", transaction1.CookieNameValue);
1089var transaction4 = await SendAsync(server, "http://example.com/me/Cookies", transaction1.CookieNameValue);
1095var transaction5 = await SendAsync(server, "http://example.com/me/Cookies", transaction4.CookieNameValue);
1122var transaction1 = await SendAsync(server, "http://example.com/testpath");
1124var transaction2 = await SendAsync(server, "http://example.com/me/Cookies?expectrenew=0&renew=0", transaction1.CookieNameValue);
1130var transaction3 = await SendAsync(server, "http://example.com/me/Cookies?expectrenew=0&renew=0", transaction1.CookieNameValue);
1137var transaction4 = await SendAsync(server, "http://example.com/me/Cookies?expectrenew=1&renew=0", transaction1.CookieNameValue);
1142var transaction5 = await SendAsync(server, "http://example.com/me/Cookies?expectrenew=1&renew=1", transaction1.CookieNameValue);
1147var transaction6 = await SendAsync(server, "http://example.com/me/Cookies?expectrenew=0&renew=1", transaction5.CookieNameValue);
1165var transaction1 = await SendAsync(server, "http://example.com/base/testpath");
1176var transaction = await SendAsync(server, url);
1190var transaction = await SendAsync(server, url);
1206var transaction1 = await SendAsync(server, "http://example.com/testpath");
1208var transaction2 = await SendAsync(server, "http://example.com/challenge", transaction1.CookieNameValue);
1222var transaction1 = await SendAsync(server, "http://example.com/testpath");
1224var transaction2 = await SendAsync(server, "http://example.com/unauthorized", transaction1.CookieNameValue);
1512var transaction = await SendAsync(server, "http://example.com/testpath");
1535var transaction = await SendAsync(server, "http://example.com/testpath?return=%2Fret_path_2");
1557var transaction = await SendAsync(server, "http://example.com/testpath?return=%2Fret_path_2");
1580var transaction = await SendAsync(server, "http://example.com/testpath?return=http%3A%2F%2Fexample.com%2Fredirect_to");
1603var transaction = await SendAsync(server, "http://example.com/testpath?return=%2Fret_path_2");
1658var transaction = await SendAsync(server1, "http://example.com/stuff");
1681var transaction2 = await SendAsync(server2, "http://example.com/stuff", transaction.CookieNameValue);