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)
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\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)
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)
Microsoft.AspNetCore.Components.Endpoints.Tests (1)
Microsoft.AspNetCore.Http (2)
Microsoft.AspNetCore.Mvc.IntegrationTests (4)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (1)