165 references to NotFound
Microsoft.AspNetCore.Mvc.Razor (3)
RazorViewEngine.cs (3)
163return ViewEngineResult.NotFound(viewName, Enumerable.Empty<string>()); 178return ViewEngineResult.NotFound(viewPath, Enumerable.Empty<string>()); 459return ViewEngineResult.NotFound(viewName, result.SearchedLocations!);
Microsoft.AspNetCore.Mvc.TagHelpers (1)
PartialTagHelper.cs (1)
192return ViewEngineResult.NotFound(partialName, searchedLocations);
Microsoft.AspNetCore.Mvc.TagHelpers.Test (15)
PartialTagHelperTest.cs (15)
206.Returns(ViewEngineResult.NotFound(partialName, new[] { partialName })); 247.Returns(ViewEngineResult.NotFound(partialName, new[] { partialName })); 584.Returns(ViewEngineResult.NotFound(partialName, new[] { "NotFound1", "NotFound2" })); 587.Returns(ViewEngineResult.NotFound(partialName, new[] { $"NotFound3", $"NotFound4" })); 625.Returns(ViewEngineResult.NotFound(partialName, searchedLocations: Array.Empty<string>())); 627.Returns(ViewEngineResult.NotFound(partialName, searchedLocations: Array.Empty<string>())); 721.Returns(ViewEngineResult.NotFound(partialName, new[] { "PartialNotFound1", "PartialNotFound2" })); 724.Returns(ViewEngineResult.NotFound(partialName, new[] { $"PartialNotFound3", $"PartialNotFound4" })); 727.Returns(ViewEngineResult.NotFound(partialName, new[] { "FallbackNotFound1", "FallbackNotFound2" })); 730.Returns(ViewEngineResult.NotFound(partialName, new[] { $"FallbackNotFound3", $"FallbackNotFound4" })); 769.Returns(ViewEngineResult.NotFound(partialName, Array.Empty<string>())); 771.Returns(ViewEngineResult.NotFound(partialName, Array.Empty<string>())); 813.Returns(ViewEngineResult.NotFound(partialName, Array.Empty<string>())); 815.Returns(ViewEngineResult.NotFound(partialName, Array.Empty<string>())); 817.Returns(ViewEngineResult.NotFound(fallbackName, Array.Empty<string>()));
Microsoft.AspNetCore.Mvc.ViewFeatures (4)
PartialViewResultExecutor.cs (1)
88result = ViewEngineResult.NotFound(viewName, locations);
ViewEngines\CompositeViewEngine.cs (2)
74return ViewEngineResult.NotFound(viewName, searchedLocations ?? Enumerable.Empty<string>()); 122return ViewEngineResult.NotFound(viewPath, searchedLocations ?? Enumerable.Empty<string>());
ViewResultExecutor.cs (1)
89result = ViewEngineResult.NotFound(viewName, locations);
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (142)
DefaultDisplayTemplatesTest.cs (12)
127.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 130.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 262.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 265.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 284.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 287.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 306.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 309.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 329.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 332.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 358.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 377.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>()));
DefaultEditorTemplatesTest.cs (36)
357.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 360.Returns(ViewEngineResult.NotFound("", Enumerable.Empty<string>())); 575.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 578.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 608.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 611.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 640.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 643.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 683.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 686.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 725.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 728.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 768.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 771.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 809.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 812.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 847.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 850.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 913.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 916.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 984.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 987.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 1054.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 1057.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 1123.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 1126.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 1189.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 1192.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 1226.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 1229.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 1250.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 1253.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 1275.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 1278.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 1306.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 1325.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>()));
PartialViewResultExecutorTest.cs (10)
32.Returns(ViewEngineResult.NotFound(viewName, Enumerable.Empty<string>())) 112.Returns(ViewEngineResult.NotFound("myview", expectedLocations)) 116.Returns(ViewEngineResult.NotFound("myview", Enumerable.Empty<string>())); 147.Returns(ViewEngineResult.NotFound("myview", Enumerable.Empty<string>())) 151.Returns(ViewEngineResult.NotFound("myview", expectedLocations)); 182.Returns(ViewEngineResult.NotFound("myview", new[] { "location1", "location2" })) 186.Returns(ViewEngineResult.NotFound("myview", new[] { "location3", "location4" })); 253.Returns(ViewEngineResult.NotFound("myview", Enumerable.Empty<string>())) 257.Returns(ViewEngineResult.NotFound("myview", new string[] { "location/myview" })); 352(executing, name, isMainPage) => ViewEngineResult.NotFound(name, Enumerable.Empty<string>()));
PartialViewResultTest.cs (7)
75.Returns(ViewEngineResult.NotFound(viewName, new[] { "Location1", "Location2" })) 80.Returns(ViewEngineResult.NotFound(viewName, Enumerable.Empty<string>())) 113.Returns(ViewEngineResult.NotFound(viewName, Enumerable.Empty<string>())) 118.Returns(ViewEngineResult.NotFound(viewName, new[] { "Location1", "Location2" })) 153.Returns(ViewEngineResult.NotFound(viewName, new[] { "Location1", "Location2" })) 158.Returns(ViewEngineResult.NotFound(viewName, new[] { "Location3", "Location4" })) 202.Returns(ViewEngineResult.NotFound(viewName, Enumerable.Empty<string>()))
Rendering\DefaultTemplatesUtilities.cs (1)
318.Returns(ViewEngineResult.NotFound("MyView", Enumerable.Empty<string>()))
Rendering\HtmlHelperDisplayExtensionsTest.cs (18)
26.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 29.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 57.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 78.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 140.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 166.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 192.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 220.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 248.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 269.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 295.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 326.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 367.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 392.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 420.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 441.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 467.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 494.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>()));
Rendering\HtmlHelperEditorExtensionsTest.cs (2)
24.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 50.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>()));
Rendering\HtmlHelperPartialExtensionsTest.cs (12)
409.Returns(ViewEngineResult.NotFound("test-view", new[] { "location1", "location2" })) 413.Returns(ViewEngineResult.NotFound("test-view", Enumerable.Empty<string>())) 438.Returns(ViewEngineResult.NotFound("test-view", Enumerable.Empty<string>())) 442.Returns(ViewEngineResult.NotFound("test-view", new[] { "location1", "location2" })) 469.Returns(ViewEngineResult.NotFound("test-view", new[] { "location1", "location2" })) 473.Returns(ViewEngineResult.NotFound("test-view", new[] { "location3", "location4" })) 498.Returns(ViewEngineResult.NotFound("test-view", new[] { "location1", "location2" })) 502.Returns(ViewEngineResult.NotFound("test-view", Enumerable.Empty<string>())) 527.Returns(ViewEngineResult.NotFound("test-view", Enumerable.Empty<string>())) 531.Returns(ViewEngineResult.NotFound("test-view", new[] { "location1", "location2" })) 558.Returns(ViewEngineResult.NotFound("test-view", new[] { "location1", "location2" })) 562.Returns(ViewEngineResult.NotFound("test-view", new[] { "location3", "location4" }))
ViewComponents\ViewViewComponentResultTest.cs (12)
37.Returns(ViewEngineResult.NotFound("some-view", Enumerable.Empty<string>())) 155.Returns(ViewEngineResult.NotFound("some-view", new[] { "location1", "location2" })) 159.Returns(ViewEngineResult.NotFound("Components/Invoke/some-view", Enumerable.Empty<string>())) 193.Returns(ViewEngineResult.NotFound("some-view", Enumerable.Empty<string>())) 197.Returns(ViewEngineResult.NotFound("Components/Invoke/some-view", new[] { "location1", "location2" })) 233.Returns(ViewEngineResult.NotFound("some-view", new[] { "location1", "location2" })) 237.Returns(ViewEngineResult.NotFound("Components/Invoke/some-view", new[] { "location3", "location4" })) 271.Returns(ViewEngineResult.NotFound("some-view", Enumerable.Empty<string>())) 307.Returns(ViewEngineResult.NotFound("some-view", Enumerable.Empty<string>())) 342.Returns(ViewEngineResult.NotFound("some-view", Enumerable.Empty<string>())) 391.Returns(ViewEngineResult.NotFound("some-view", new[] { "view-location1", "view-location2" })) 395.Returns(ViewEngineResult.NotFound(
ViewEngines\CompositeViewEngineTest.cs (15)
57.Returns(ViewEngineResult.NotFound(viewName, new[] { "controller/test-view" })); 104.Returns(ViewEngineResult.NotFound(viewName, Enumerable.Empty<string>())); 137.Returns(ViewEngineResult.NotFound(viewName, new[] { "1", "2" })); 140.Returns(ViewEngineResult.NotFound(viewName, new[] { "3" })); 143.Returns(ViewEngineResult.NotFound(viewName, new[] { "4", "5" })); 189.Returns(ViewEngineResult.NotFound(expectedViewName, new[] { expectedViewName })); 242.Returns(ViewEngineResult.NotFound(expectedViewName, Enumerable.Empty<string>())); 278.Returns(ViewEngineResult.NotFound(expectedViewName, new[] { "1", "2" })); 281.Returns(ViewEngineResult.NotFound(expectedViewName, new[] { "3" })); 284.Returns(ViewEngineResult.NotFound(expectedViewName, new[] { "4", "5" })); 324.Returns(ViewEngineResult.NotFound(viewName, new[] { "Shared/partial-view" })); 371.Returns(ViewEngineResult.NotFound(viewName, Enumerable.Empty<string>())); 404.Returns(ViewEngineResult.NotFound(viewName, new[] { "1", "2" })); 407.Returns(ViewEngineResult.NotFound(viewName, new[] { "3" })); 410.Returns(ViewEngineResult.NotFound(viewName, new[] { "4", "5" }));
ViewResultExecutorTest.cs (10)
31.Returns(ViewEngineResult.NotFound(viewName, Enumerable.Empty<string>())) 111.Returns(ViewEngineResult.NotFound("myview", expectedLocations)); 114.Returns(ViewEngineResult.NotFound("myview", Enumerable.Empty<string>())); 145.Returns(ViewEngineResult.NotFound("myview", Enumerable.Empty<string>())); 148.Returns(ViewEngineResult.NotFound("myview", expectedLocations)); 179.Returns(ViewEngineResult.NotFound("myview", new[] { "location1", "location2" })); 182.Returns(ViewEngineResult.NotFound("myview", new[] { "location3", "location4" })); 249.Returns(ViewEngineResult.NotFound("myview", Enumerable.Empty<string>())); 252.Returns(ViewEngineResult.NotFound("myview", new string[] { "location/myview" })); 342(path, name, partial) => ViewEngineResult.NotFound(name, Enumerable.Empty<string>()));
ViewResultTest.cs (7)
85.Returns(ViewEngineResult.NotFound(viewName, Enumerable.Empty<string>())) 90.Returns(ViewEngineResult.NotFound(viewName, new[] { "Location1", "Location2" })) 125.Returns(ViewEngineResult.NotFound(viewName, new[] { "Location1", "Location2" })) 130.Returns(ViewEngineResult.NotFound(viewName, new[] { "Location3", "Location4" })) 165.Returns(ViewEngineResult.NotFound(viewName, new[] { "Location1", "Location2" })) 170.Returns(ViewEngineResult.NotFound(viewName, new[] { "Location3", "Location4" })) 214.Returns(ViewEngineResult.NotFound(viewName, Enumerable.Empty<string>()))