12 writes to ViewName
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
ViewComponent.cs (1)
218ViewName = viewName,
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (11)
ViewComponents\ViewViewComponentResultTest.cs (11)
49ViewName = "some-view", 167ViewName = "some-view", 205ViewName = "some-view", 245ViewName = "some-view", 283ViewName = "some-view", 319ViewName = "some-view", 359ViewName = "some-view", 405ViewName = "some-view", 433ViewName = "some-view", 467componentResult.ViewName = viewName; 493ViewName = viewName,
15 references to ViewName
Microsoft.AspNetCore.Mvc.ViewFeatures (7)
ViewComponents\ViewViewComponentResult.cs (7)
47/// Locates and renders a view specified by <see cref="ViewName"/>. If <see cref="ViewName"/> is <c>null</c>, 63/// Locates and renders a view specified by <see cref="ViewName"/>. If <see cref="ViewName"/> is <c>null</c>, 74var isNullOrEmptyViewName = string.IsNullOrEmpty(ViewName); 81result = viewEngine.GetView(viewContext.ExecutingFilePath, ViewName!, isMainPage: false); 98var viewName = isNullOrEmptyViewName ? DefaultViewName : ViewName;
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (8)
ViewComponentTests.cs (8)
79Assert.Null(actualResult.ViewName); 98Assert.Null(actualResult.ViewName); 116Assert.Equal("CustomViewName", actualResult.ViewName); 136Assert.Null(actualResult.ViewName); 156Assert.Null(actualResult.ViewName); 175Assert.Equal("CustomViewName", actualResult.ViewName); 194Assert.Equal("CustomViewName", actualResult.ViewName); 214Assert.Equal("CustomViewName", actualResult.ViewName);