34 instantiations of FormFile
Microsoft.AspNetCore.Components.Endpoints.Tests (13)
Binding\FormDataMapperTests.cs (13)
1904var expected = new FormFile(Stream.Null, 0, 10, "file", "file.txt"); 1929new FormFile(Stream.Null, 0, 10, "file", "file-1.txt"), 1930new FormFile(Stream.Null, 0, 20, "file", "file-2.txt"), 1931new FormFile(Stream.Null, 0, 30, "file", "file-3.txt"), 1932new FormFile(Stream.Null, 0, 40, "oddOneOutFile", "file-4.txt"), 1962new FormFile(Stream.Null, 0, 10, "file", "file-1.txt"), 1963new FormFile(Stream.Null, 0, 20, "file", "file-2.txt"), 1964new FormFile(Stream.Null, 0, 30, "file", "file-3.txt"), 1965new FormFile(Stream.Null, 0, 40, "oddOneOutFile", "file-4.txt"), 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") }; 2042new FormFile(new MemoryStream(Encoding.UTF8.GetBytes(expectedString1)), 0, expectedString1.Length, "file", "file1.txt"), 2043new FormFile(new MemoryStream(Encoding.UTF8.GetBytes(expectedString2)), 0, expectedString2.Length, "file", "file2.txt")
Microsoft.AspNetCore.Http (2)
Features\FormFeature.cs (2)
268file = new FormFile(_request.Body, section.BaseStreamOffset.GetValueOrDefault(), section.Body.Length, name, fileName); 273file = new FormFile(section.Body, 0, section.Body.Length, name, fileName);
Microsoft.AspNetCore.Http.Extensions.Tests (3)
RequestDelegateFactoryTests.FormMapping.cs (3)
293new FormFile(Stream.Null, 0, 10, "file", "file.txt"), 294new FormFile(Stream.Null, 0, 10, "formFiles", "file-1.txt"), 295new FormFile(Stream.Null, 0, 10, "formFiles", "file-2.txt"),
Microsoft.AspNetCore.Mvc.Core.Test (4)
ModelBinding\FormFileValueProviderFactoryTest.cs (1)
49files.Add(new FormFile(Stream.Null, 0, 10, "some-name", "some-name"));
ModelBinding\FormFileValueProviderTest.cs (3)
18formFiles.Add(new FormFile(Stream.Null, 0, 0, "file", fileName: null)); 37formFiles.Add(new FormFile(Stream.Null, 0, 10, "file", "file")); 56formFiles.Add(new FormFile(Stream.Null, 0, 10, "file", "file"));
Microsoft.AspNetCore.Mvc.IntegrationTests (12)
BindingSourceMetadataProviderIntegrationTest.cs (1)
139fileCollection.Add(new FormFile(memoryStream, 0, data.Length, name, fileName)
ComplexRecordIntegrationTest.cs (1)
4230var file = new FormFile(memoryStream, 0, memoryStream.Length, name, fileName)
ComplexTypeIntegrationTestBase.cs (1)
3729var file = new FormFile(memoryStream, 0, memoryStream.Length, name, fileName)
FormCollectionModelBindingIntegrationTest.cs (1)
166fileCollection.Add(new FormFile(memoryStream, 0, data.Length, name, fileName)
FormFileModelBindingIntegrationTest.cs (4)
554new FormFile(new MemoryStream(), baseStreamOffset: 0, length: 0, name: "file", fileName: "file1"), 555new FormFile(new MemoryStream(), baseStreamOffset: 0, length: 0, name: "file", fileName: "file2"), 556new FormFile(new MemoryStream(), baseStreamOffset: 0, length: 0, name: "file", fileName: "file3"), 1274fileCollection.Add(new FormFile(memoryStream, 0, data.Length, name, fileName)
TryUpdateModelIntegrationTest.cs (4)
1055new FormFile(new MemoryStream(), baseStreamOffset: 0, length: 0, name: "file", fileName: "file1"), 1056new FormFile(new MemoryStream(), baseStreamOffset: 0, length: 0, name: "file", fileName: "file2"), 1057new FormFile(new MemoryStream(), baseStreamOffset: 0, length: 0, name: "file", fileName: "file3"), 1285fileCollection.Add(new FormFile(memoryStream, 0, data.Length, name, fileName)
9 references to FormFile
HtmlGenerationWebSite (1)
Models\Folder.cs (1)
12public FormFile ConcreteFile { get; set; }
Microsoft.AspNetCore.Components.Endpoints.Tests (1)
Binding\FormDataMapperTests.cs (1)
1904var expected = new FormFile(Stream.Null, 0, 10, "file", "file.txt");
Microsoft.AspNetCore.Http (2)
Features\FormFeature.cs (1)
264FormFile file;
FormFile.cs (1)
18/// Initializes a new instance of <see cref="FormFile"/>.
Microsoft.AspNetCore.Mvc.IntegrationTests (4)
ComplexRecordIntegrationTest.cs (1)
4230var file = new FormFile(memoryStream, 0, memoryStream.Length, name, fileName)
ComplexTypeIntegrationTestBase.cs (1)
3729var file = new FormFile(memoryStream, 0, memoryStream.Length, name, fileName)
FormFileModelBindingIntegrationTest.cs (2)
639var file = Assert.IsType<FormFile>(modelBindingResult.Model);
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (1)
TemplateRendererTest.cs (1)
31{ typeof(FormFile), new string[] { "FormFile", "IFormFile", "Object" } },