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