9 instantiations of ViewLocationExpanderContext
Microsoft.AspNetCore.Mvc.Razor (1)
RazorViewEngine.cs (1)
230
var expanderContext = new
ViewLocationExpanderContext
(
Microsoft.AspNetCore.Mvc.Razor.Test (7)
LanguageViewLocationExpanderTest.cs (3)
133
var viewLocationExpanderContext = new
ViewLocationExpanderContext
(
158
var viewLocationExpanderContext = new
ViewLocationExpanderContext
(
186
var viewLocationExpanderContext = new
ViewLocationExpanderContext
(
RazorViewEngineTest.cs (4)
1737
var context = new
ViewLocationExpanderContext
(
1762
var context = new
ViewLocationExpanderContext
(
1787
var context = new
ViewLocationExpanderContext
(
1814
var context = new
ViewLocationExpanderContext
(
Microsoft.AspNetCore.Mvc.RazorPages.Test (1)
Infrastructure\PageViewLocationExpanderTest.cs (1)
208
return new
ViewLocationExpanderContext
(
74 references to ViewLocationExpanderContext
Microsoft.AspNetCore.Mvc.Razor (15)
IViewLocationExpander.cs (8)
12
/// (1) <see cref="PopulateValues(
ViewLocationExpanderContext
)"/> is invoked and each expander
14
/// <see cref="ExpandViewLocations(
ViewLocationExpanderContext
, IEnumerable{string})"/>.
16
/// <see cref="PopulateValues(
ViewLocationExpanderContext
)"/> was invoked, the cached result
19
/// <see cref="ExpandViewLocations(
ViewLocationExpanderContext
, IEnumerable{string})"/> is invoked to determine
29
/// <param name="context">The <see cref="
ViewLocationExpanderContext
"/> for the current view location
31
void PopulateValues(
ViewLocationExpanderContext
context);
36
/// <param name="context">The <see cref="
ViewLocationExpanderContext
"/> for the current view location
40
IEnumerable<string> ExpandViewLocations(
ViewLocationExpanderContext
context,
LanguageViewLocationExpander.cs (2)
43
public void PopulateValues(
ViewLocationExpanderContext
context)
53
ViewLocationExpanderContext
context,
RazorViewEngine.cs (3)
230
var
expanderContext = new ViewLocationExpanderContext(
309
internal IEnumerable<string> GetViewLocationFormats(
ViewLocationExpanderContext
context)
338
ViewLocationExpanderContext
expanderContext,
ViewLocationExpanderContext.cs (2)
12
/// Initializes a new instance of <see cref="
ViewLocationExpanderContext
"/>.
72
/// <see cref="IViewLocationExpander.PopulateValues(
ViewLocationExpanderContext
)"/>.
Microsoft.AspNetCore.Mvc.Razor.Test (44)
LanguageViewLocationExpanderTest.cs (3)
133
var
viewLocationExpanderContext = new ViewLocationExpanderContext(
158
var
viewLocationExpanderContext = new ViewLocationExpanderContext(
186
var
viewLocationExpanderContext = new ViewLocationExpanderContext(
RazorViewEngineTest.cs (41)
674
.Setup(e => e.PopulateValues(It.IsAny<
ViewLocationExpanderContext
>()))
675
.Callback((
ViewLocationExpanderContext
c) =>
683
It.IsAny<
ViewLocationExpanderContext
>(),
685
.Callback((
ViewLocationExpanderContext
c, IEnumerable<string> seeds) =>
696
It.IsAny<
ViewLocationExpanderContext
>(),
698
.Callback((
ViewLocationExpanderContext
c, IEnumerable<string> seeds) =>
742
.Setup(e => e.PopulateValues(It.IsAny<
ViewLocationExpanderContext
>()))
743
.Callback((
ViewLocationExpanderContext
c) =>
751
It.IsAny<
ViewLocationExpanderContext
>(),
753
.Callback((
ViewLocationExpanderContext
c, IEnumerable<string> seeds) =>
764
It.IsAny<
ViewLocationExpanderContext
>(),
766
.Callback((
ViewLocationExpanderContext
c, IEnumerable<string> seeds) =>
802
It.IsAny<
ViewLocationExpanderContext
>(),
960
.Setup(v => v.PopulateValues(It.IsAny<
ViewLocationExpanderContext
>()))
961
.Callback((
ViewLocationExpanderContext
expanderContext) =>
968
It.IsAny<
ViewLocationExpanderContext
>(),
993
v => v.PopulateValues(It.IsAny<
ViewLocationExpanderContext
>()),
996
v => v.ExpandViewLocations(It.IsAny<
ViewLocationExpanderContext
>(), It.IsAny<IEnumerable<string>>()),
1019
.Setup(v => v.PopulateValues(It.IsAny<
ViewLocationExpanderContext
>()))
1020
.Callback((
ViewLocationExpanderContext
expanderContext) =>
1027
It.IsAny<
ViewLocationExpanderContext
>(),
1057
v => v.PopulateValues(It.IsAny<
ViewLocationExpanderContext
>()),
1060
v => v.ExpandViewLocations(It.IsAny<
ViewLocationExpanderContext
>(), It.IsAny<IEnumerable<string>>()),
1158
.Setup(e => e.PopulateValues(It.IsAny<
ViewLocationExpanderContext
>()))
1159
.Callback((
ViewLocationExpanderContext
c) =>
1167
It.IsAny<
ViewLocationExpanderContext
>(),
1169
.Returns((
ViewLocationExpanderContext
c, IEnumerable<string> seeds) =>
1217
.Setup(e => e.PopulateValues(It.IsAny<
ViewLocationExpanderContext
>()))
1218
.Callback((
ViewLocationExpanderContext
c) =>
1226
It.IsAny<
ViewLocationExpanderContext
>(),
1228
.Returns((
ViewLocationExpanderContext
c, IEnumerable<string> seeds) =>
1737
var
context = new ViewLocationExpanderContext(
1762
var
context = new ViewLocationExpanderContext(
1787
var
context = new ViewLocationExpanderContext(
1814
var
context = new ViewLocationExpanderContext(
1842
.Setup(e => e.PopulateValues(It.IsAny<
ViewLocationExpanderContext
>()))
1843
.Callback((
ViewLocationExpanderContext
c) =>
1852
It.IsAny<
ViewLocationExpanderContext
>(),
1878
.Setup(e => e.PopulateValues(It.IsAny<
ViewLocationExpanderContext
>()))
1879
.Callback((
ViewLocationExpanderContext
c) =>
1887
It.IsAny<
ViewLocationExpanderContext
>(),
Microsoft.AspNetCore.Mvc.RazorPages (2)
Infrastructure\PageViewLocationExpander.cs (2)
14
public IEnumerable<string> ExpandViewLocations(
ViewLocationExpanderContext
context, IEnumerable<string> viewLocations)
68
public void PopulateValues(
ViewLocationExpanderContext
context)
Microsoft.AspNetCore.Mvc.RazorPages.Test (9)
Infrastructure\PageViewLocationExpanderTest.cs (9)
15
var
context = CreateContext();
30
var
context = CreateContext(pageName: null);
51
var
context = CreateContext(pageName: "test");
71
var
context = CreateContext(pageName: null);
95
var
context = CreateContext(pageName: pageName);
115
var
context = CreateContext(pageName: "/Customers/Edit");
148
var
context = CreateContext(pageName: pageName);
167
var
context = CreateContext(pageName: "/Customers/Edit");
201
private
ViewLocationExpanderContext
CreateContext(string viewName = "_LoginPartial.cshtml", string pageName = null)
RazorWebSite (4)
Services\BackSlashExpander.cs (2)
11
public void PopulateValues(
ViewLocationExpanderContext
context)
15
public virtual IEnumerable<string> ExpandViewLocations(
ViewLocationExpanderContext
context, IEnumerable<string> viewLocations)
Services\NonMainPageViewLocationExpander.cs (2)
10
public void PopulateValues(
ViewLocationExpanderContext
context)
15
ViewLocationExpanderContext
context,