26 instantiations of ObjectTemplateModel
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (26)
DefaultDisplayTemplatesTest.cs (8)
55
var model = new DefaultTemplatesUtilities.
ObjectTemplateModel
{ Property1 = "p1", Property2 = null };
92
var model = new DefaultTemplatesUtilities.
ObjectTemplateModel
();
150
var model = new DefaultTemplatesUtilities.
ObjectTemplateModel
{ Property1 = "p1", Property2 = null };
258
var model = new DefaultTemplatesUtilities.
ObjectTemplateModel
{ Property1 = "Model string" };
280
var model = new DefaultTemplatesUtilities.
ObjectTemplateModel
{ Property1 = "Model string" };
302
var model = new DefaultTemplatesUtilities.
ObjectTemplateModel
{ Property1 = "Model string" };
325
var model = new DefaultTemplatesUtilities.
ObjectTemplateModel
{ Property1 = propertyValue, };
348
var model = new DefaultTemplatesUtilities.
ObjectTemplateModel
{ Property1 = "Test string", };
DefaultEditorTemplatesTest.cs (15)
192
var model = new DefaultTemplatesUtilities.
ObjectTemplateModel
{ Property1 = "p1", Property2 = null };
229
var model = new DefaultTemplatesUtilities.
ObjectTemplateModel
{ Property1 = "p1", Property2 = null };
312
var model = new DefaultTemplatesUtilities.
ObjectTemplateModel
()
390
var model = new DefaultTemplatesUtilities.
ObjectTemplateModel
{ Property1 = "p1", Property2 = null };
571
var model = new DefaultTemplatesUtilities.
ObjectTemplateModel
{ Property1 = "True" };
604
var model = new DefaultTemplatesUtilities.
ObjectTemplateModel
{ Property1 = "True" };
636
var model = new DefaultTemplatesUtilities.
ObjectTemplateModel
{ Property1 = "True" };
679
var model = new DefaultTemplatesUtilities.
ObjectTemplateModel
{ Property1 = "True" };
721
var model = new DefaultTemplatesUtilities.
ObjectTemplateModel
{ Property1 = "True" };
764
var model = new DefaultTemplatesUtilities.
ObjectTemplateModel
{ Property1 = "True" };
805
var model = new DefaultTemplatesUtilities.
ObjectTemplateModel
{ Property1 = "Model string" };
1222
var model = new DefaultTemplatesUtilities.
ObjectTemplateModel
{ Property1 = "Model string" };
1246
var model = new DefaultTemplatesUtilities.
ObjectTemplateModel
{ Property1 = "Model string" };
1271
var model = new DefaultTemplatesUtilities.
ObjectTemplateModel
{ Property1 = propertyValue, };
1296
var model = new DefaultTemplatesUtilities.
ObjectTemplateModel
{ Property1 = "Test string", };
Rendering\HtmlHelperSelectTest.cs (3)
393
var model = new DefaultTemplatesUtilities.
ObjectTemplateModel
{ Property1 = "2" };
646
var model = new DefaultTemplatesUtilities.
ObjectTemplateModel
{ Property1 = "2" };
670
var model = new DefaultTemplatesUtilities.
ObjectTemplateModel
{ Property1 = "2" };
87 references to ObjectTemplateModel
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (87)
DefaultDisplayTemplatesTest.cs (11)
55
var
model = new DefaultTemplatesUtilities.ObjectTemplateModel { Property1 = "p1", Property2 = null };
70
provider.ForType<DefaultTemplatesUtilities.
ObjectTemplateModel
>().DisplayDetails(dd =>
92
var
model = new DefaultTemplatesUtilities.ObjectTemplateModel();
96
provider.ForType<DefaultTemplatesUtilities.
ObjectTemplateModel
>().DisplayDetails(dd =>
150
var
model = new DefaultTemplatesUtilities.ObjectTemplateModel { Property1 = "p1", Property2 = null };
153
provider.ForProperty<DefaultTemplatesUtilities.
ObjectTemplateModel
>("Property1").DisplayDetails(dd =>
258
var
model = new DefaultTemplatesUtilities.ObjectTemplateModel { Property1 = "Model string" };
280
var
model = new DefaultTemplatesUtilities.ObjectTemplateModel { Property1 = "Model string" };
302
var
model = new DefaultTemplatesUtilities.ObjectTemplateModel { Property1 = "Model string" };
325
var
model = new DefaultTemplatesUtilities.ObjectTemplateModel { Property1 = propertyValue, };
348
var
model = new DefaultTemplatesUtilities.ObjectTemplateModel { Property1 = "Test string", };
DefaultEditorTemplatesTest.cs (24)
192
var
model = new DefaultTemplatesUtilities.ObjectTemplateModel { Property1 = "p1", Property2 = null };
225
.ForProperty<DefaultTemplatesUtilities.
ObjectTemplateModel
>(
226
nameof(DefaultTemplatesUtilities.
ObjectTemplateModel
.Property1))
229
var
model = new DefaultTemplatesUtilities.ObjectTemplateModel { Property1 = "p1", Property2 = null };
286
provider.ForType<DefaultTemplatesUtilities.
ObjectTemplateModel
>().DisplayDetails(dd =>
312
var
model = new DefaultTemplatesUtilities.ObjectTemplateModel()
318
provider.ForType<DefaultTemplatesUtilities.
ObjectTemplateModel
>().DisplayDetails(dd =>
385
provider.ForProperty<DefaultTemplatesUtilities.
ObjectTemplateModel
>("Property1").DisplayDetails(dd =>
390
var
model = new DefaultTemplatesUtilities.ObjectTemplateModel { Property1 = "p1", Property2 = null };
571
var
model = new DefaultTemplatesUtilities.ObjectTemplateModel { Property1 = "True" };
604
var
model = new DefaultTemplatesUtilities.ObjectTemplateModel { Property1 = "True" };
636
var
model = new DefaultTemplatesUtilities.ObjectTemplateModel { Property1 = "True" };
646
provider.ForProperty<DefaultTemplatesUtilities.
ObjectTemplateModel
>("Property1").DisplayDetails(dd =>
679
var
model = new DefaultTemplatesUtilities.ObjectTemplateModel { Property1 = "True" };
689
provider.ForProperty<DefaultTemplatesUtilities.
ObjectTemplateModel
>("Property1").DisplayDetails(dd =>
721
var
model = new DefaultTemplatesUtilities.ObjectTemplateModel { Property1 = "True" };
731
provider.ForProperty<DefaultTemplatesUtilities.
ObjectTemplateModel
>("Property1").DisplayDetails(dd =>
764
var
model = new DefaultTemplatesUtilities.ObjectTemplateModel { Property1 = "True" };
774
provider.ForProperty<DefaultTemplatesUtilities.
ObjectTemplateModel
>("Property1").DisplayDetails(dd =>
805
var
model = new DefaultTemplatesUtilities.ObjectTemplateModel { Property1 = "Model string" };
1222
var
model = new DefaultTemplatesUtilities.ObjectTemplateModel { Property1 = "Model string" };
1246
var
model = new DefaultTemplatesUtilities.ObjectTemplateModel { Property1 = "Model string" };
1271
var
model = new DefaultTemplatesUtilities.ObjectTemplateModel { Property1 = propertyValue, };
1296
var
model = new DefaultTemplatesUtilities.ObjectTemplateModel { Property1 = "Test string", };
Rendering\DefaultTemplatesUtilities.cs (13)
50
public static HtmlHelper<
ObjectTemplateModel
> GetHtmlHelper()
52
return GetHtmlHelper<
ObjectTemplateModel
>(model: null);
55
public static HtmlHelper<IEnumerable<
ObjectTemplateModel
>> GetHtmlHelperForEnumerable()
57
return GetHtmlHelper<IEnumerable<
ObjectTemplateModel
>>(model: null);
60
public static HtmlHelper<
ObjectTemplateModel
> GetHtmlHelper(IUrlHelper urlHelper)
62
return GetHtmlHelper<
ObjectTemplateModel
>(
69
public static HtmlHelper<
ObjectTemplateModel
> GetHtmlHelper(IHtmlGenerator htmlGenerator)
72
return GetHtmlHelper<
ObjectTemplateModel
>(
73
new ViewDataDictionary<
ObjectTemplateModel
>(metadataProvider),
143
public static HtmlHelper<
ObjectTemplateModel
> GetHtmlHelper(IModelMetadataProvider provider)
145
return GetHtmlHelper<
ObjectTemplateModel
>(model: null, provider: provider);
148
public static HtmlHelper<IEnumerable<
ObjectTemplateModel
>> GetHtmlHelperForEnumerable(
151
return GetHtmlHelper<IEnumerable<
ObjectTemplateModel
>>(model: null, provider: provider);
Rendering\HtmlHelperCheckboxTest.cs (1)
503
var helper = DefaultTemplatesUtilities.GetHtmlHelper<DefaultTemplatesUtilities.
ObjectTemplateModel
>(
Rendering\HtmlHelperDisplayNameExtensionsTest.cs (6)
19
DefaultTemplatesUtilities.GetHtmlHelper<IEnumerable<DefaultTemplatesUtilities.
ObjectTemplateModel
>>(model: null);
95
.ForType<DefaultTemplatesUtilities.
ObjectTemplateModel
>()
104
var displayNameForEnumerableResult = enumerableHelper.DisplayNameFor((DefaultTemplatesUtilities.
ObjectTemplateModel
m) => m);
122
.ForProperty<DefaultTemplatesUtilities.
ObjectTemplateModel
>("Property1")
178
DefaultTemplatesUtilities.GetHtmlHelper<IEnumerable<DefaultTemplatesUtilities.
ObjectTemplateModel
>>(model: null);
208
DefaultTemplatesUtilities.GetHtmlHelper<IEnumerable<DefaultTemplatesUtilities.
ObjectTemplateModel
>>(model: null);
Rendering\HtmlHelperLabelExtensionsTest.cs (17)
116
.GetModelExplorerForType(typeof(DefaultTemplatesUtilities.
ObjectTemplateModel
), model: null)
156
.ForType<DefaultTemplatesUtilities.
ObjectTemplateModel
>()
184
.ForType<DefaultTemplatesUtilities.
ObjectTemplateModel
>()
210
.ForType<DefaultTemplatesUtilities.
ObjectTemplateModel
>()
236
.ForType<DefaultTemplatesUtilities.
ObjectTemplateModel
>()
262
.ForType<DefaultTemplatesUtilities.
ObjectTemplateModel
>()
288
.ForProperty<DefaultTemplatesUtilities.
ObjectTemplateModel
>("Property1")
293
.GetModelExplorerForType(typeof(DefaultTemplatesUtilities.
ObjectTemplateModel
), model: null)
294
.GetExplorerForProperty(nameof(DefaultTemplatesUtilities.
ObjectTemplateModel
.Property1));
295
helper.ViewData.TemplateInfo.HtmlFieldPrefix = nameof(DefaultTemplatesUtilities.
ObjectTemplateModel
.Property1);
318
.ForProperty<DefaultTemplatesUtilities.
ObjectTemplateModel
>("Property1")
324
var labelResult = helper.Label(expression: nameof(DefaultTemplatesUtilities.
ObjectTemplateModel
.Property1));
339
.ForProperty<DefaultTemplatesUtilities.
ObjectTemplateModel
>("Property1")
346
expression: nameof(DefaultTemplatesUtilities.
ObjectTemplateModel
.Property1),
363
.ForProperty<DefaultTemplatesUtilities.
ObjectTemplateModel
>("Property1")
370
expression: nameof(DefaultTemplatesUtilities.
ObjectTemplateModel
.Property1),
387
.ForProperty<DefaultTemplatesUtilities.
ObjectTemplateModel
>("Property1")
Rendering\HtmlHelperNameExtensionsTest.cs (6)
165
ModelMetadataIdentity.ForType(typeof(DefaultTemplatesUtilities.
ObjectTemplateModel
)));
167
.Setup(m => m.GetMetadataForType(typeof(DefaultTemplatesUtilities.
ObjectTemplateModel
)))
183
m => m.GetMetadataForType(typeof(DefaultTemplatesUtilities.
ObjectTemplateModel
)),
194
ModelMetadataIdentity.ForType(typeof(DefaultTemplatesUtilities.
ObjectTemplateModel
)));
196
.Setup(m => m.GetMetadataForType(typeof(DefaultTemplatesUtilities.
ObjectTemplateModel
)))
210
m => m.GetMetadataForType(typeof(DefaultTemplatesUtilities.
ObjectTemplateModel
)),
Rendering\HtmlHelperSelectTest.cs (3)
393
var
model = new DefaultTemplatesUtilities.ObjectTemplateModel { Property1 = "2" };
646
var
model = new DefaultTemplatesUtilities.ObjectTemplateModel { Property1 = "2" };
670
var
model = new DefaultTemplatesUtilities.ObjectTemplateModel { Property1 = "2" };
Rendering\HtmlHelperTest.cs (6)
157
IHtmlHelper<DefaultTemplatesUtilities.
ObjectTemplateModel
> helper =
191
IHtmlHelper<DefaultTemplatesUtilities.
ObjectTemplateModel
> helper =
208
IHtmlHelper<DefaultTemplatesUtilities.
ObjectTemplateModel
> helper =
226
IHtmlHelper<DefaultTemplatesUtilities.
ObjectTemplateModel
> helper =
260
IHtmlHelper<DefaultTemplatesUtilities.
ObjectTemplateModel
> helper =
277
IHtmlHelper<DefaultTemplatesUtilities.
ObjectTemplateModel
> helper =