61 references to FormCollection
Microsoft.AspNetCore.Antiforgery.Test (4)
DefaultAntiforgeryTokenStoreTest.cs (4)
102
httpContext.Request.Form = new
FormCollection
(new Dictionary<string, StringValues>
131
httpContext.Request.Form = new
FormCollection
(new Dictionary<string, StringValues>
160
httpContext.Request.Form = new
FormCollection
(new Dictionary<string, StringValues>
190
httpContext.Request.Form = new
FormCollection
(new Dictionary<string, StringValues>
Microsoft.AspNetCore.Authentication.Twitter (2)
TwitterHandler.cs (2)
277
var responseParameters = new
FormCollection
(new FormReader(responseText).ReadForm());
308
var responseParameters = new
FormCollection
(new FormReader(responseText).ReadForm());
Microsoft.AspNetCore.Http (3)
Features\FormFeature.cs (3)
221
formFields = new
FormCollection
(await formReader.ReadFormAsync(cancellationToken));
307
formFields = new
FormCollection
(formAccumulator.GetResults(), files);
324
Form = new
FormCollection
(null, files);
Microsoft.AspNetCore.Http.Extensions.Tests (15)
RequestDelegateFactoryTests.cs (2)
635
httpContext.Request.Form = new
FormCollection
(new Dictionary<string, StringValues>
663
httpContext.Request.Form = new
FormCollection
(null);
RequestDelegateFactoryTests.FormMapping.cs (8)
32
httpContext.Request.Form = new
FormCollection
(new Dictionary<string, StringValues>
79
httpContext.Request.Form = new
FormCollection
(new Dictionary<string, StringValues>
127
httpContext.Request.Form = new
FormCollection
(new Dictionary<string, StringValues>
160
httpContext.Request.Form = new
FormCollection
(new Dictionary<string, StringValues>
183
httpContext.Request.Form = new
FormCollection
(new Dictionary<string, StringValues>
213
httpContext.Request.Form = new
FormCollection
(new Dictionary<string, StringValues>
252
httpContext.Request.Form = new
FormCollection
(new Dictionary<string, StringValues>
297
httpContext.Request.Form = new
FormCollection
(new() { { "Description", "A test file" } }, formFiles);
RequestDelegateGenerator\CompileTimeCreationTests.cs (1)
780
httpContext.Request.Form = new
FormCollection
(new Dictionary<string, StringValues>
RequestDelegateGenerator\RequestDelegateCreationTests.Arrays.cs (1)
767
httpContext.Request.Form = new
FormCollection
(new Dictionary<string, StringValues>
RequestDelegateGenerator\RequestDelegateCreationTests.cs (1)
591
httpContext.Request.Form = new
FormCollection
(new Dictionary<string, StringValues>
RequestDelegateGenerator\RequestDelegateCreationTests.Forms.cs (1)
897
httpContext.Request.Form = new
FormCollection
(new Dictionary<string, StringValues>
RequestDelegateGenerator\RequestDelegateCreationTests.Logging.cs (1)
36
httpContext.Request.Form = new
FormCollection
(null);
Microsoft.AspNetCore.Mvc.Core.Test (13)
Filters\RequestFormLimitsFilterTest.cs (1)
66
authorizationFilterContext.HttpContext.Request.Form = new
FormCollection
(null);
ModelBinding\Binders\DictionaryModelBinderTest.cs (1)
645
var formCollection = new
FormCollection
(backingStore);
ModelBinding\Binders\FormCollectionModelBinderProviderTest.cs (1)
64
public DerivedFormCollection() :
base
(fields: null, files: null) { }
ModelBinding\Binders\FormCollectionModelBinderTest.cs (1)
18
var formCollection = new
FormCollection
(new Dictionary<string, StringValues>
ModelBinding\CompositeValueProviderTest.cs (1)
41
var valueProvider = new FormValueProvider(bindingSource, new
FormCollection
(values), culture);
ModelBinding\DefaultModelBindingContextTest.cs (1)
179
new
FormCollection
(new Dictionary<string, StringValues>()),
ModelBinding\FormFileValueProviderFactoryTest.cs (1)
117
context.Request.Form = new
FormCollection
(new Dictionary<string, StringValues>(), new FormFileCollection());
ModelBinding\FormFileValueProviderTest.cs (3)
19
httpContext.Request.Form = new
FormCollection
(new Dictionary<string, StringValues>(), formFiles);
38
httpContext.Request.Form = new
FormCollection
(new Dictionary<string, StringValues>(), formFiles);
57
httpContext.Request.Form = new
FormCollection
(new Dictionary<string, StringValues>(), formFiles);
ModelBinding\FormValueProviderFactoryTest.cs (1)
108
context.Request.Form = new
FormCollection
(new Dictionary<string, StringValues>());
ModelBinding\FormValueProviderTest.cs (1)
42
var backingStore = new
FormCollection
(values);
ModelBinding\JQueryFormValueProviderFactoryTest.cs (1)
193
context.Request.Form = new
FormCollection
(formValues ?? new Dictionary<string, StringValues>());
Microsoft.AspNetCore.Mvc.IntegrationTests (24)
BindingSourceMetadataProviderIntegrationTest.cs (2)
36
request.Form = new
FormCollection
(new Dictionary<string, StringValues>
125
var formCollection = new
FormCollection
(new Dictionary<string, StringValues>(), fileCollection);
CollectionModelBinderIntegrationTest.cs (3)
597
var formCollection = new
FormCollection
(new Dictionary<string, StringValues>()
655
var formCollection = new
FormCollection
(new Dictionary<string, StringValues>()
946
request.Form = new
FormCollection
(formContent);
ComplexRecordIntegrationTest.cs (1)
4223
var formCollection = new
FormCollection
(new Dictionary<string, StringValues>(), fileCollection);
ComplexTypeIntegrationTestBase.cs (1)
3722
var formCollection = new
FormCollection
(new Dictionary<string, StringValues>(), fileCollection);
DictionaryModelBinderIntegrationTest.cs (7)
290
request.Form = new
FormCollection
(impliedPrefixDictionary);
295
request.Form = new
FormCollection
(reversedImpliedPrefixDictionary);
300
request.Form = new
FormCollection
(longFormDictionary);
305
request.Form = new
FormCollection
(longerFormDictionary);
310
request.Form = new
FormCollection
(longestFormDictionary);
315
request.Form = new
FormCollection
(noPrefixDictionary);
320
request.Form = new
FormCollection
(reversedNoPrefixDictionary);
ExcludeBindingMetadataProviderIntegrationTest.cs (2)
37
request.Form = new
FormCollection
(new Dictionary<string, StringValues>
86
request.Form = new
FormCollection
(new Dictionary<string, StringValues>
FormCollectionModelBindingIntegrationTest.cs (1)
160
var formCollection = new
FormCollection
(new Dictionary<string, StringValues>(), fileCollection);
FormFileModelBindingIntegrationTest.cs (1)
1252
var formCollection = new
FormCollection
(new Dictionary<string, StringValues>(), new FormFileCollection());
ModelPrefixSelectionIntegrationTest.cs (4)
38
request.Form = new
FormCollection
(new Dictionary<string, StringValues>()
87
request.Form = new
FormCollection
(new Dictionary<string, StringValues>()
175
request.Form = new
FormCollection
(new Dictionary<string, StringValues>()
221
request.Form = new
FormCollection
(new Dictionary<string, StringValues>()
SimpleTypeModelBinderIntegrationTest.cs (1)
674
request.Form = new
FormCollection
(personStore);
TryUpdateModelIntegrationTest.cs (1)
1277
var formCollection = new
FormCollection
(new Dictionary<string, StringValues>(), fileCollection);