21 references to PropertyOfModel
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (21)
Rendering\HtmlHelperSelectTest.cs (21)
71new SelectListItem { Text = SelectSources.PropertyOfModel.ToString() }, 428viewData.Model = new ModelContainingSources { Property1 = SelectSources.PropertyOfModel }; 465viewData.Model = new ModelContainingSources { Property1 = SelectSources.PropertyOfModel }; 491viewData.Model = new ModelContainingSources { Property1 = SelectSources.PropertyOfModel }; 518viewData.Model = new ModelContainingSources { Property1 = SelectSources.PropertyOfModel }; 545viewData.Model = new ModelContainingSources { Property1 = SelectSources.PropertyOfModel }; 562var expectedHtml = GetExpectedSelectElement(SelectSources.PropertyOfModel, allowMultiple: false); 563var model = new ModelContainingSources { Property1 = SelectSources.PropertyOfModel }; 578var expectedHtml = GetExpectedSelectElementWithPrefix(SelectSources.PropertyOfModel, allowMultiple: false); 579var model = new ModelContainingSources { Property1 = SelectSources.PropertyOfModel }; 831viewData.Model = new ModelContainingListOfSources { Property1 = { SelectSources.PropertyOfModel } }; 868viewData.Model = new ModelContainingListOfSources { Property1 = { SelectSources.PropertyOfModel } }; 894viewData.Model = new ModelContainingListOfSources { Property1 = { SelectSources.PropertyOfModel } }; 921viewData.Model = new ModelContainingListOfSources { Property1 = { SelectSources.PropertyOfModel } }; 948viewData.Model = new ModelContainingListOfSources { Property1 = { SelectSources.PropertyOfModel } }; 965var expectedHtml = GetExpectedSelectElement(SelectSources.PropertyOfModel, allowMultiple: true); 966var model = new ModelContainingListOfSources { Property1 = { SelectSources.PropertyOfModel } }; 981var expectedHtml = GetExpectedSelectElementWithPrefix(SelectSources.PropertyOfModel, allowMultiple: true); 982var model = new ModelContainingListOfSources { Property1 = { SelectSources.PropertyOfModel } }; 1518$"{ GetOption(SelectSources.PropertyOfModel, source) }{ Environment.NewLine }" + 1533$"{ GetOption(SelectSources.PropertyOfModel, source) }{ Environment.NewLine }" +