51 references to AddFile
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (44)
FileProviderRazorProjectFileSystemTest.cs (22)
18
var file1 = fileProvider.
AddFile
("/File1.txt", "content");
19
var file2 = fileProvider.
AddFile
("/File2.js", "content");
36
var file1 = fileProvider.
AddFile
("/File1.cshtml", "content");
37
var file2 = fileProvider.
AddFile
("/File2.js", "content");
38
var file3 = fileProvider.
AddFile
("/File3.cshtml", "content");
74
var file1 = fileProvider.
AddFile
("File1.cshtml", "content");
81
var file2 = fileProvider.
AddFile
("/Level1-Dir1/File2.cshtml", "content");
82
var file3 = fileProvider.
AddFile
("/Level1-Dir1/File3.cshtml", "content");
83
var file4 = fileProvider.
AddFile
("/Level1-Dir1/File4.txt", "content");
89
var file5 = fileProvider.
AddFile
(Path.Combine("Level1-Dir2", "File5.cshtml"), "content");
139
var file1 = fileProvider.
AddFile
("/File1.cshtml", "content");
146
var file2 = fileProvider.
AddFile
("/Level1-Dir1/File2.cshtml", "content");
147
var file3 = fileProvider.
AddFile
("/Level1-Dir1/File3.cshtml", "content");
148
var file4 = fileProvider.
AddFile
("/Level1-Dir1/File4.txt", "content");
154
var file5 = fileProvider.
AddFile
(Path.Combine("Level1-Dir2", "File5.cshtml"), "content");
185
var file1 = fileProvider.
AddFile
("/File1.cshtml", "content");
186
var file2 = fileProvider.
AddFile
("/File2.js", "content");
187
var file3 = fileProvider.
AddFile
("/File3.cshtml", "content");
207
var file1 = fileProvider.
AddFile
("/File1.cshtml", "content");
208
var file2 = fileProvider.
AddFile
("/File2.js", "content");
209
var file3 = fileProvider.
AddFile
("/File3.cshtml", "content");
230
var file = fileProvider.
AddFile
("/SomeFile.cshtml", "content");
RuntimeViewCompilerTest.cs (22)
66
fileProvider.
AddFile
(path, "some content");
92
fileProvider.
AddFile
(viewPath, "some content");
112
var fileNode = fileProvider.
AddFile
(path, "some content");
140
fileProvider.
AddFile
(path, "some content");
166
fileProvider.
AddFile
(path, "some content");
192
fileProvider.
AddFile
(path, "some content");
218
fileProvider.
AddFile
(path, "some content");
238
fileProvider.
AddFile
(path, "some content");
259
fileProvider.
AddFile
(path, "some content");
297
fileProvider.
AddFile
(path, "some content");
332
fileProvider.
AddFile
(path, "some content");
364
fileProvider.
AddFile
(path, "some content");
394
fileProvider.
AddFile
(path, "some content");
423
var file = fileProvider.
AddFile
(path, "some content");
461
fileProvider.
AddFile
(path, "some content");
495
var file = fileProvider.
AddFile
(path, "different content");
534
fileProvider.
AddFile
(path, "some content");
535
var importFile = fileProvider.
AddFile
(importPath, "some import");
576
fileProvider.
AddFile
(path1, "some content");
577
fileProvider.
AddFile
(path2, "some content");
654
fileProvider.
AddFile
(path, "some content");
696
fileProvider.
AddFile
(path, "some content");
Microsoft.AspNetCore.Mvc.RazorPages.Test (3)
Builder\PageActionEndpointConventionBuilderResourceCollectionExtensionsTest.cs (1)
271
provider.
AddFile
("site.css", "body { color: red; }");
Infrastructure\PageActionInvokerProviderTest.cs (2)
174
fileProvider.
AddFile
("/Home/Path1/_ViewStart.cshtml", "content1");
175
fileProvider.
AddFile
("/_ViewStart.cshtml", "content2");
Microsoft.AspNetCore.Mvc.TagHelpers.Test (3)
DefaultFileVersionProviderTest.cs (3)
112
fileProvider.
AddFile
("file.txt", "Hello World!");
127
fileProvider.
AddFile
("file.txt", "Hello World!");
151
fileProvider.
AddFile
("file.txt", "Hello World!");
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (1)
Builder\ControllerActionEndpointConventionBuilderResourceCollectionExtensionsTest.cs (1)
347
provider.
AddFile
("site.css", "body { color: red; }");