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