32 instantiations of FormFileCollection
Microsoft.AspNetCore.Components.Endpoints.Tests (7)
Binding\FormDataMapperTests.cs (6)
1905var formFileCollection = new FormFileCollection { expected }; 1927var formFileCollection = new FormFileCollection 1960var formFileCollection = new FormFileCollection 1988var expected = new FormFileCollection { new FormFile(Stream.Null, 0, 10, "file", "file.txt") }; 2011var expected = new FormFileCollection { new FormFile(new MemoryStream(Encoding.UTF8.GetBytes(expectedString)), 0, expectedString.Length, "file", "file.txt") }; 2040var expected = new FormFileCollection
HttpContextFormValueMapperTest.cs (1)
38formData.SetFormData(incomingFormName, new Dictionary<string, StringValues>(), new FormFileCollection());
Microsoft.AspNetCore.Http (2)
Features\FormFeature.cs (1)
279files = new FormFileCollection();
FormCollection.cs (1)
28private static readonly IFormFileCollection EmptyFiles = new FormFileCollection();
Microsoft.AspNetCore.Http.Extensions.Tests (1)
RequestDelegateFactoryTests.FormMapping.cs (1)
291var formFiles = new FormFileCollection
Microsoft.AspNetCore.Mvc.Core.Test (16)
ModelBinding\Binders\FormFileModelBinderTest.cs (12)
17var formFiles = new FormFileCollection 41var formFiles = new FormFileCollection 76var formFiles = new FormFileCollection 116var formFiles = new FormFileCollection 157var formFiles = new FormFileCollection 191var formFiles = new FormFileCollection 295var formFiles = new FormFileCollection(); 312var formFiles = new FormFileCollection 334var formFiles = new FormFileCollection 362var formFiles = new FormFileCollection 382var formFiles = new FormFileCollection 483var formFiles = new FormFileCollection
ModelBinding\FormFileValueProviderFactoryTest.cs (1)
117context.Request.Form = new FormCollection(new Dictionary<string, StringValues>(), new FormFileCollection());
ModelBinding\FormFileValueProviderTest.cs (3)
17var formFiles = new FormFileCollection(); 36var formFiles = new FormFileCollection(); 55var formFiles = new FormFileCollection();
Microsoft.AspNetCore.Mvc.IntegrationTests (6)
BindingSourceMetadataProviderIntegrationTest.cs (1)
124var fileCollection = new FormFileCollection();
ComplexRecordIntegrationTest.cs (1)
4222fileCollection = new FormFileCollection();
ComplexTypeIntegrationTestBase.cs (1)
3721fileCollection = new FormFileCollection();
FormCollectionModelBindingIntegrationTest.cs (1)
159var fileCollection = new FormFileCollection();
FormFileModelBindingIntegrationTest.cs (1)
1252var formCollection = new FormCollection(new Dictionary<string, StringValues>(), new FormFileCollection());
TryUpdateModelIntegrationTest.cs (1)
1276var fileCollection = new FormFileCollection();
49 references to FormFileCollection
HtmlGenerationWebSite (1)
Models\Folder.cs (1)
14public FormFileCollection ConcreteFiles { get; set; }
Microsoft.AspNetCore.Components.Endpoints.Tests (6)
Binding\FormDataMapperTests.cs (6)
1905var formFileCollection = new FormFileCollection { expected }; 1927var formFileCollection = new FormFileCollection 1960var formFileCollection = new FormFileCollection 1988var expected = new FormFileCollection { new FormFile(Stream.Null, 0, 10, "file", "file.txt") }; 2011var expected = new FormFileCollection { new FormFile(new MemoryStream(Encoding.UTF8.GetBytes(expectedString)), 0, expectedString.Length, "file", "file.txt") }; 2040var expected = new FormFileCollection
Microsoft.AspNetCore.Http (1)
Features\FormFeature.cs (1)
205FormFileCollection? files = null;
Microsoft.AspNetCore.Http.Extensions.Tests (5)
RequestDelegateFactoryTests.FormMapping.cs (1)
291var formFiles = new FormFileCollection
RequestDelegateGenerator\RequestDelegateCreationTests.Forms.cs (4)
409var formFilesArgument = Assert.IsType<FormFileCollection>(httpContext.Items["formFiles"]); 835var formFilesArgument = Assert.IsAssignableFrom<FormFileCollection>(httpContext.Items["FormFilesArgument"]);
Microsoft.AspNetCore.Mvc.Core.Test (25)
ModelBinding\Binders\FormFileModelBinderTest.cs (20)
17var formFiles = new FormFileCollection 41var formFiles = new FormFileCollection 76var formFiles = new FormFileCollection 116var formFiles = new FormFileCollection 157var formFiles = new FormFileCollection 191var formFiles = new FormFileCollection 227var formFiles = GetTwoFiles(); 255[InlineData(typeof(FormFileCollection))] 260var formFiles = GetTwoFiles(); 277var formFiles = GetTwoFiles(); 295var formFiles = new FormFileCollection(); 312var formFiles = new FormFileCollection 334var formFiles = new FormFileCollection 362var formFiles = new FormFileCollection 382var formFiles = new FormFileCollection 403var formFiles = GetTwoFiles(); 420var formFiles = GetTwoFiles(); 481private static FormFileCollection GetTwoFiles() 483var formFiles = new FormFileCollection 492private static IFormCollection GetMockFormCollection(FormFileCollection formFiles)
ModelBinding\FormFileValueProviderFactoryTest.cs (2)
48var files = (FormFileCollection)context.ActionContext.HttpContext.Request.Form.Files;
ModelBinding\FormFileValueProviderTest.cs (3)
17var formFiles = new FormFileCollection(); 36var formFiles = new FormFileCollection(); 55var formFiles = new FormFileCollection();
Microsoft.AspNetCore.Mvc.IntegrationTests (10)
BindingSourceMetadataProviderIntegrationTest.cs (1)
124var fileCollection = new FormFileCollection();
ComplexRecordIntegrationTest.cs (2)
4214FormFileCollection fileCollection; 4218fileCollection = (FormFileCollection)request.Form.Files;
ComplexTypeIntegrationTestBase.cs (2)
3713FormFileCollection fileCollection; 3717fileCollection = (FormFileCollection)request.Form.Files;
FormCollectionModelBindingIntegrationTest.cs (1)
159var fileCollection = new FormFileCollection();
FormFileModelBindingIntegrationTest.cs (3)
692public FormFileCollection Specs { get; set; } 1272var fileCollection = (FormFileCollection)request.Form.Files;
TryUpdateModelIntegrationTest.cs (1)
1276var fileCollection = new FormFileCollection();
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (1)
TemplateRendererTest.cs (1)
34{ typeof(FormFileCollection), new string[] { "FormFileCollection", typeof(List<IFormFile>).Name,