1 type derived from FormCollection
Microsoft.AspNetCore.Mvc.Core.Test (1)
ModelBinding\Binders\FormCollectionModelBinderProviderTest.cs (1)
62private class DerivedFormCollection : FormCollection
61 instantiations of 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 (4)
Features\FormFeature.cs (3)
221formFields = new FormCollection(await formReader.ReadFormAsync(cancellationToken)); 307formFields = new FormCollection(formAccumulator.GetResults(), files); 324Form = new FormCollection(null, files);
FormCollection.cs (1)
21public static readonly FormCollection Empty = new FormCollection();
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 (12)
Filters\RequestFormLimitsFilterTest.cs (1)
66authorizationFilterContext.HttpContext.Request.Form = new FormCollection(null);
ModelBinding\Binders\DictionaryModelBinderTest.cs (1)
645var formCollection = new FormCollection(backingStore);
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);
27 references to FormCollection
Microsoft.AspNetCore.Antiforgery.Test (2)
DefaultAntiforgeryTokenStoreTest.cs (2)
78httpContext.Request.Form = FormCollection.Empty; 273httpContext.Request.Form = FormCollection.Empty;
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.Components.Endpoints (1)
FormMapping\HttpContextFormDataProvider.cs (1)
21public IFormFileCollection FormFiles => _formFiles ?? (IFormFileCollection)FormCollection.Empty;
Microsoft.AspNetCore.Http (8)
Features\FormFeature.cs (3)
196return FormCollection.Empty; 204FormCollection? formFields = null; 328Form = FormCollection.Empty;
FormCollection.cs (5)
19/// An empty <see cref="FormCollection"/>. 21public static readonly FormCollection Empty = new FormCollection(); 38/// Initializes a new instance of <see cref="FormCollection"/>. 173/// Enumerates a <see cref="FormCollection"/>. 188/// Advances the enumerator to the next element of the <see cref="FormCollection"/>.
Microsoft.AspNetCore.Http.Tests (1)
Features\FormFeatureTests.cs (1)
25Assert.Same(FormCollection.Empty, formCollection);
Microsoft.AspNetCore.Mvc.Core (1)
ModelBinding\Binders\FormCollectionModelBinderProvider.cs (1)
25if (typeof(FormCollection).IsAssignableFrom(modelType))
Microsoft.AspNetCore.Mvc.Core.Test (4)
ModelBinding\Binders\DictionaryModelBinderTest.cs (1)
645var formCollection = new FormCollection(backingStore);
ModelBinding\Binders\FormCollectionModelBinderProviderTest.cs (1)
11[InlineData(typeof(FormCollection))]
ModelBinding\Binders\FormCollectionModelBinderTest.cs (1)
18var formCollection = new FormCollection(new Dictionary<string, StringValues>
ModelBinding\FormValueProviderTest.cs (1)
42var backingStore = new FormCollection(values);
Microsoft.AspNetCore.Mvc.IntegrationTests (8)
BindingSourceMetadataProviderIntegrationTest.cs (1)
125var formCollection = new FormCollection(new Dictionary<string, StringValues>(), fileCollection);
CollectionModelBinderIntegrationTest.cs (2)
597var formCollection = new FormCollection(new Dictionary<string, StringValues>() 655var formCollection = new FormCollection(new Dictionary<string, StringValues>()
ComplexRecordIntegrationTest.cs (1)
4223var formCollection = new FormCollection(new Dictionary<string, StringValues>(), fileCollection);
ComplexTypeIntegrationTestBase.cs (1)
3722var formCollection = new FormCollection(new Dictionary<string, StringValues>(), fileCollection);
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());
TryUpdateModelIntegrationTest.cs (1)
1277var formCollection = new FormCollection(new Dictionary<string, StringValues>(), fileCollection);