38 references to AntiforgeryTestHelper
Microsoft.AspNetCore.Mvc.FunctionalTests (38)
AntiforgeryTests.cs (5)
62
var formToken =
AntiforgeryTestHelper
.RetrieveAntiforgeryToken(
65
var cookieToken =
AntiforgeryTestHelper
.RetrieveAntiforgeryCookie(getResponse);
112
var formToken =
AntiforgeryTestHelper
.RetrieveAntiforgeryToken(
115
var cookieToken =
AntiforgeryTestHelper
.RetrieveAntiforgeryCookie(getResponse);
143
var formToken =
AntiforgeryTestHelper
.RetrieveAntiforgeryToken(
HtmlGenerationTest.cs (3)
123
var forgeryToken =
AntiforgeryTestHelper
.RetrieveAntiforgeryToken(responseContent, antiforgeryPath);
280
ResourceFile.UpdateOrVerify(_resourcesAssembly, outputFile, expectedContent, responseContent, token:
AntiforgeryTestHelper
.RetrieveAntiforgeryToken(responseContent, antiforgeryPath));
343
ResourceFile.UpdateOrVerify(_resourcesAssembly, outputFile, expectedContent, responseContent, token:
AntiforgeryTestHelper
.RetrieveAntiforgeryToken(responseContent, "Customer/HtmlGeneration_Customer"));
NonNullableReferenceTypesTest.cs (2)
49
var cookieToken =
AntiforgeryTestHelper
.RetrieveAntiforgeryCookie(response);
91
var cookieToken =
AntiforgeryTestHelper
.RetrieveAntiforgeryCookie(response);
RazorPageModelTest.cs (2)
192
var formToken =
AntiforgeryTestHelper
.RetrieveAntiforgeryToken(getResponseBody, "");
193
var cookie =
AntiforgeryTestHelper
.RetrieveAntiforgeryCookie(getResponse);
RazorPagesTest.cs (15)
58
var forgeryToken =
AntiforgeryTestHelper
.RetrieveAntiforgeryToken(responseContent, "SimpleForms");
98
var formToken =
AntiforgeryTestHelper
.RetrieveAntiforgeryToken(getResponseBody, "/ModelHandlerTestPage");
99
var cookie =
AntiforgeryTestHelper
.RetrieveAntiforgeryCookie(getResponse);
130
var formToken =
AntiforgeryTestHelper
.RetrieveAntiforgeryToken(getResponseBody, "/ModelHandlerTestPage");
131
var cookie =
AntiforgeryTestHelper
.RetrieveAntiforgeryCookie(getResponse);
211
var formToken =
AntiforgeryTestHelper
.RetrieveAntiforgeryToken(getResponseBody, "/ModelHandlerTestPage");
212
var cookie =
AntiforgeryTestHelper
.RetrieveAntiforgeryCookie(getResponse);
243
var formToken =
AntiforgeryTestHelper
.RetrieveAntiforgeryToken(getResponseBody, "/ModelHandlerTestPage");
244
var cookie =
AntiforgeryTestHelper
.RetrieveAntiforgeryCookie(getResponse);
413
var formToken =
AntiforgeryTestHelper
.RetrieveAntiforgeryToken(getResponseBody, "/HelloWorlWithPageModelHandler");
414
var cookie =
AntiforgeryTestHelper
.RetrieveAntiforgeryCookie(getResponse);
576
var formToken =
AntiforgeryTestHelper
.RetrieveAntiforgeryToken(getResponseBody, "/TempData/TempDataPageModelProperty");
577
var cookie =
AntiforgeryTestHelper
.RetrieveAntiforgeryCookie(getResponse);
1504
var formToken =
AntiforgeryTestHelper
.RetrieveAntiforgeryToken(getResponseBody, "");
1505
var cookie =
AntiforgeryTestHelper
.RetrieveAntiforgeryCookie(getResponse);
RazorPagesWithBasePathTest.cs (10)
209
var forgeryToken =
AntiforgeryTestHelper
.RetrieveAntiforgeryToken(responseContent, "/TagHelper/PostWithHandler");
429
var token =
AntiforgeryTestHelper
.RetrieveAntiforgeryToken(await getPage.Content.ReadAsStringAsync(), "");
430
var cookie =
AntiforgeryTestHelper
.RetrieveAntiforgeryCookie(getPage);
458
var token =
AntiforgeryTestHelper
.RetrieveAntiforgeryToken(await getPage.Content.ReadAsStringAsync(), "");
459
var cookie =
AntiforgeryTestHelper
.RetrieveAntiforgeryCookie(getPage);
486
var token =
AntiforgeryTestHelper
.RetrieveAntiforgeryToken(await getPage.Content.ReadAsStringAsync(), "");
487
var cookie =
AntiforgeryTestHelper
.RetrieveAntiforgeryCookie(getPage);
698
var cookie =
AntiforgeryTestHelper
.RetrieveAntiforgeryCookie(response);
759
var formToken =
AntiforgeryTestHelper
.RetrieveAntiforgeryToken(responseBody);
760
var cookie =
AntiforgeryTestHelper
.RetrieveAntiforgeryCookie(response);
TagHelpersTest.cs (1)
124
var forgeryToken =
AntiforgeryTestHelper
.RetrieveAntiforgeryToken(