21 references to RetrieveAntiforgeryToken
Microsoft.AspNetCore.Mvc.FunctionalTests (21)
AntiforgeryTestHelper.cs (1)
12
=>
RetrieveAntiforgeryToken
(htmlContent, actionUrl: string.Empty);
AntiforgeryTests.cs (3)
62
var formToken = AntiforgeryTestHelper.
RetrieveAntiforgeryToken
(
112
var formToken = AntiforgeryTestHelper.
RetrieveAntiforgeryToken
(
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"));
RazorPageModelTest.cs (1)
192
var formToken = AntiforgeryTestHelper.
RetrieveAntiforgeryToken
(getResponseBody, "");
RazorPagesTest.cs (8)
58
var forgeryToken = AntiforgeryTestHelper.
RetrieveAntiforgeryToken
(responseContent, "SimpleForms");
98
var formToken = AntiforgeryTestHelper.
RetrieveAntiforgeryToken
(getResponseBody, "/ModelHandlerTestPage");
130
var formToken = AntiforgeryTestHelper.
RetrieveAntiforgeryToken
(getResponseBody, "/ModelHandlerTestPage");
211
var formToken = AntiforgeryTestHelper.
RetrieveAntiforgeryToken
(getResponseBody, "/ModelHandlerTestPage");
243
var formToken = AntiforgeryTestHelper.
RetrieveAntiforgeryToken
(getResponseBody, "/ModelHandlerTestPage");
413
var formToken = AntiforgeryTestHelper.
RetrieveAntiforgeryToken
(getResponseBody, "/HelloWorlWithPageModelHandler");
576
var formToken = AntiforgeryTestHelper.
RetrieveAntiforgeryToken
(getResponseBody, "/TempData/TempDataPageModelProperty");
1504
var formToken = AntiforgeryTestHelper.
RetrieveAntiforgeryToken
(getResponseBody, "");
RazorPagesWithBasePathTest.cs (4)
209
var forgeryToken = AntiforgeryTestHelper.
RetrieveAntiforgeryToken
(responseContent, "/TagHelper/PostWithHandler");
429
var token = AntiforgeryTestHelper.
RetrieveAntiforgeryToken
(await getPage.Content.ReadAsStringAsync(), "");
458
var token = AntiforgeryTestHelper.
RetrieveAntiforgeryToken
(await getPage.Content.ReadAsStringAsync(), "");
486
var token = AntiforgeryTestHelper.
RetrieveAntiforgeryToken
(await getPage.Content.ReadAsStringAsync(), "");
TagHelpersTest.cs (1)
124
var forgeryToken = AntiforgeryTestHelper.
RetrieveAntiforgeryToken
(