104 instantiations of SelectListItem
IdentitySample.Mvc (1)
Controllers\AccountController.cs (1)
355var factorOptions = userFactors.Select(purpose => new SelectListItem { Text = purpose, Value = purpose }).ToList();
Microsoft.AspNetCore.Mvc.TagHelpers.Test (1)
SelectTagHelperTest.cs (1)
95var arrayItems = new[] { new SelectListItem() };
Microsoft.AspNetCore.Mvc.ViewFeatures (7)
DefaultDisplayTemplates.cs (3)
66new SelectListItem(Resources.Common_TriState_NotSet, string.Empty, !value.HasValue), 67new SelectListItem(Resources.Common_TriState_True, "true", (value == true)), 68new SelectListItem(Resources.Common_TriState_False, "false", (value == false)),
DefaultHtmlGenerator.cs (1)
1581new SelectListItem()
HtmlHelper.cs (1)
1385var selectListItem = new SelectListItem
Rendering\MultiSelectList.cs (2)
164var newListItem = new SelectListItem 189var newListItem = new SelectListItem
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (95)
Rendering\HtmlHelperDropDownListExtensionsTest.cs (16)
14new SelectListItem("Zero", "0"), 15new SelectListItem("One", "1"), 16new SelectListItem("Two", "2"), 17new SelectListItem("Three", "3"), 77new SelectListItem("Four", "4"), 78new SelectListItem("Five", "5"), 102new SelectListItem("Four", "4"), 103new SelectListItem("Five", "5"), 129new SelectListItem("Four", "4"), 130new SelectListItem("Five", "5"), 177new SelectListItem("Four", "4"), 178new SelectListItem("Five", "5"), 203new SelectListItem("Four", "4"), 204new SelectListItem("Five", "5"), 229new SelectListItem("Four", "4"), 230new SelectListItem("Five", "5"),
Rendering\HtmlHelperListBoxExtensionsTest.cs (12)
14new SelectListItem("Zero", "0"), 15new SelectListItem("One", "1"), 16new SelectListItem("Two", "2"), 17new SelectListItem("Three", "3"), 53new SelectListItem("Four", "4"), 54new SelectListItem("Five", "5"), 78new SelectListItem("Four", "4"), 79new SelectListItem("Five", "5"), 125new SelectListItem("Four", "4"), 126new SelectListItem("Five", "5"), 150new SelectListItem("Four", "4"), 151new SelectListItem("Five", "5"),
Rendering\HtmlHelperSelectTest.cs (67)
29new SelectListItem("Zero", "0"), 30new SelectListItem("One", "1"), 31new SelectListItem("Two", "2"), 32new SelectListItem("Three", "3"), 36new SelectListItem("Zero", "0", false, false), 37new SelectListItem("One", "1", true, true), 38new SelectListItem("Two", "2", false, false), 39new SelectListItem("Three", "3", false, true), 43new SelectListItem("Zero", "0", true) { Group = GroupOne }, 44new SelectListItem("One", "1", false) { Group = GroupTwo }, 45new SelectListItem("Two", "2", true) { Group = GroupOne }, 46new SelectListItem("Three", "3", false) { Group = null }, 50new SelectListItem("Zero", "0", true) { Group = GroupOne }, 51new SelectListItem("One", "1", true) { Group = GroupOne }, 52new SelectListItem("Two", "2", false) { Group = GroupOne }, 53new SelectListItem("Three", "3", false) { Group = GroupOne }, 57new SelectListItem("Zero", "0", true) { Group = DisabledGroup }, 58new SelectListItem("One", "1", true) { Group = DisabledGroup }, 59new SelectListItem("Two", "2", true) { Group = DisabledGroup }, 60new SelectListItem("Three", "3", true) { Group = DisabledGroup }, 64new SelectListItem { Text = SelectSources.ModelStateEntry.ToString() }, 65new SelectListItem { Text = SelectSources.ModelStateEntryWithPrefix.ToString() }, 66new SelectListItem { Text = SelectSources.ViewDataEntry.ToString() }, 67new SelectListItem { Text = SelectSources.PropertyOfViewDataEntry.ToString() }, 68new SelectListItem { Text = SelectSources.ViewDataEntryWithPrefix.ToString() }, 69new SelectListItem { Text = SelectSources.PropertyOfViewDataEntryWithPrefix.ToString() }, 70new SelectListItem { Text = SelectSources.ModelValue.ToString() }, 71new SelectListItem { Text = SelectSources.PropertyOfModel.ToString() }, 1414new SelectListItem { Text = "cero", Value = "0" }, 1415new SelectListItem { Text = nameof(EnumWithDisplayNames.One), Value = "1" }, 1416new SelectListItem { Text = "dos", Value = "2" }, 1417new SelectListItem { Text = "tres", Value = "3" }, 1418new SelectListItem { Text = "name from resources", Value = "-2" }, 1419new SelectListItem { Text = "menos uno", Value = "-1" }, 1426new SelectListItem { Text = "cero", Value = "0" }, 1427new SelectListItem { Text = nameof(EnumWithDisplayNames.One), Value = "1" }, 1428new SelectListItem { Text = "dos", Value = "2" }, 1429new SelectListItem { Text = "tres", Value = "3" }, 1430new SelectListItem { Text = "name from resources", Value = "-2" }, 1431new SelectListItem { Text = "menos uno", Value = "-1" }, 1438new SelectListItem { Text = nameof(EnumWithDuplicates.Zero), Value = "0" }, 1439new SelectListItem { Text = nameof(EnumWithDuplicates.None), Value = "0" }, 1440new SelectListItem { Text = nameof(EnumWithDuplicates.One), Value = "1" }, 1441new SelectListItem { Text = nameof(EnumWithDuplicates.Duece), Value = "2" }, 1442new SelectListItem { Text = nameof(EnumWithDuplicates.Two), Value = "2" }, 1443new SelectListItem { Text = nameof(EnumWithDuplicates.MoreThanTwo), Value = "3" }, 1444new SelectListItem { Text = nameof(EnumWithDuplicates.Three), Value = "3" }, 1451new SelectListItem { Text = nameof(EnumWithDuplicates.Zero), Value = "0" }, 1452new SelectListItem { Text = nameof(EnumWithDuplicates.None), Value = "0" }, 1453new SelectListItem { Text = nameof(EnumWithDuplicates.One), Value = "1" }, 1454new SelectListItem { Text = nameof(EnumWithDuplicates.Duece), Value = "2" }, 1455new SelectListItem { Text = nameof(EnumWithDuplicates.Two), Value = "2" }, 1456new SelectListItem { Text = nameof(EnumWithDuplicates.MoreThanTwo), Value = "3" }, 1457new SelectListItem { Text = nameof(EnumWithDuplicates.Three), Value = "3" }, 1464new SelectListItem { Text = nameof(EnumWithFields.Zero), Value = "0" }, 1465new SelectListItem { Text = nameof(EnumWithFields.One), Value = "1" }, 1466new SelectListItem { Text = nameof(EnumWithFields.Two), Value = "2" }, 1467new SelectListItem { Text = nameof(EnumWithFields.Three), Value = "3" }, 1468new SelectListItem { Text = nameof(EnumWithFields.MinusTwo), Value = "-2" }, 1469new SelectListItem { Text = nameof(EnumWithFields.MinusOne), Value = "-1" }, 1476new SelectListItem { Text = nameof(EnumWithFields.Zero), Value = "0" }, 1477new SelectListItem { Text = nameof(EnumWithFields.One), Value = "1" }, 1478new SelectListItem { Text = nameof(EnumWithFields.Two), Value = "2" }, 1479new SelectListItem { Text = nameof(EnumWithFields.Three), Value = "3" }, 1480new SelectListItem { Text = nameof(EnumWithFields.MinusTwo), Value = "-2" }, 1481new SelectListItem { Text = nameof(EnumWithFields.MinusOne), Value = "-1" }, 1600var copy = new SelectListItem
248 references to SelectListItem
HtmlGenerationWebSite (2)
Controllers\HtmlGeneration_HomeController.cs (2)
32private readonly IEnumerable<SelectListItem> _productsList; 33private readonly IEnumerable<SelectListItem> _productsListWithSelection;
IdentitySample.Mvc (2)
Models\AccountViewModels\SendCodeViewModel.cs (1)
12public ICollection<SelectListItem> Providers { get; set; }
Models\ManageViewModels\ConfigureTwoFactorViewModel.cs (1)
12public ICollection<SelectListItem> Providers { get; set; }
Microsoft.AspNetCore.Mvc.TagHelpers (3)
SelectTagHelper.cs (3)
57/// A collection of <see cref="SelectListItem"/> objects used to populate the &lt;select&gt; element with 61public IEnumerable<SelectListItem> Items { get; set; } 124var items = Items ?? Enumerable.Empty<SelectListItem>();
Microsoft.AspNetCore.Mvc.TagHelpers.Test (11)
SelectTagHelperTest.cs (11)
90public static TheoryData<IEnumerable<SelectListItem>, string, string, IEnumerable<SelectListItem>> 96var listItems = new List<SelectListItem>(); 101new[] { (IEnumerable<SelectListItem>)null, Enumerable.Empty<SelectListItem>() }, 129new TheoryData<IEnumerable<SelectListItem>, string, string, IEnumerable<SelectListItem>>(); 539IEnumerable<SelectListItem> inputItems, 542IEnumerable<SelectListItem> expectedItems) 675It.IsAny<IEnumerable<SelectListItem>>(), 786var selectList = Array.Empty<SelectListItem>();
Microsoft.AspNetCore.Mvc.ViewFeatures (149)
DefaultDisplayTemplates.cs (3)
53foreach (var item in TriStateValues(value)) 62internal static List<SelectListItem> TriStateValues(bool? value) 64return new List<SelectListItem>
DefaultHtmlGenerator.cs (15)
510IEnumerable<SelectListItem> selectList, 534IEnumerable<SelectListItem> selectList, 919if (rawValue is IEnumerable<SelectListItem>) 1036internal static TagBuilder GenerateOption(SelectListItem item, string text) 1041internal static TagBuilder GenerateOption(SelectListItem item, string text, bool selected) 1485private static IEnumerable<SelectListItem> GetSelectListItems( 1500$"IEnumerable<{nameof(SelectListItem)}>", 1505if (!(value is IEnumerable<SelectListItem> selectList)) 1510$"IEnumerable<{nameof(SelectListItem)}>")); 1548public IHtmlContent GenerateGroupsAndOptions(string optionLabel, IEnumerable<SelectListItem> selectList) 1555IEnumerable<SelectListItem> selectList, 1558if (!(selectList is IList<SelectListItem> itemsList)) 1598var item = itemsList[i]; 1617var groupItem = itemsList[j]; 1640private static IHtmlContent GenerateOption(SelectListItem item, ICollection<string> currentValues)
HtmlHelper.cs (10)
337IEnumerable<SelectListItem> selectList, 366public IEnumerable<SelectListItem> GetEnumSelectList<TEnum>() where TEnum : struct 383public IEnumerable<SelectListItem> GetEnumSelectList(Type enumType) 429public IHtmlContent ListBox(string expression, IEnumerable<SelectListItem> selectList, object htmlAttributes) 819IEnumerable<SelectListItem> selectList, 1085/// <param name="selectList">An enumeration of <see cref="SelectListItem"/>.</param> 1094IEnumerable<SelectListItem> selectList, 1368protected virtual IEnumerable<SelectListItem> GetEnumSelectList(ModelMetadata metadata) 1381var selectList = new List<SelectListItem>(); 1385var selectListItem = new SelectListItem
HtmlHelperOfT.cs (2)
108IEnumerable<SelectListItem> selectList, 226IEnumerable<SelectListItem> selectList,
IHtmlGenerator.cs (7)
368/// A collection of <see cref="SelectListItem"/> objects used to populate the &lt;select&gt; element with 396IEnumerable<SelectListItem> selectList, 411/// A collection of <see cref="SelectListItem"/> objects used to populate the &lt;select&gt; element with 417/// <c>null</c>, selects &lt;option&gt; elements based on <see cref="SelectListItem.Selected"/> values in 445IEnumerable<SelectListItem> selectList, 455/// A collection of <see cref="SelectListItem"/> objects used to generate &lt;optgroup&gt; and &lt;option&gt; 461IHtmlContent GenerateGroupsAndOptions(string optionLabel, IEnumerable<SelectListItem> selectList);
Rendering\HtmlHelperSelectExtensions.cs (49)
17/// "selected" attribute to an &lt;option&gt; if its <see cref="SelectListItem.Value"/> (if non-<c>null</c>) or 18/// <see cref="SelectListItem.Text"/> matches the first non-<c>null</c> value found in: 34/// <see cref="SelectListItem"/> objects. 48/// <see cref="SelectListItem.Value"/> (if non-<c>null</c>) or <see cref="SelectListItem.Text"/> matches the 68/// <see cref="SelectListItem"/> objects. 88/// &lt;option&gt; if its <see cref="SelectListItem.Value"/> (if non-<c>null</c>) or 89/// <see cref="SelectListItem.Text"/> matches the first non-<c>null</c> value found in: 99/// A collection of <see cref="SelectListItem"/> objects used to populate the &lt;select&gt; element with 101/// entry with full name and that entry must be a collection of <see cref="SelectListItem"/> objects. 112IEnumerable<SelectListItem> selectList) 122/// &lt;option&gt; if its <see cref="SelectListItem.Value"/> (if non-<c>null</c>) or 123/// <see cref="SelectListItem.Text"/> matches the first non-<c>null</c> value found in: 133/// A collection of <see cref="SelectListItem"/> objects used to populate the &lt;select&gt; element with 135/// entry with full name and that entry must be a collection of <see cref="SelectListItem"/> objects. 150IEnumerable<SelectListItem> selectList, 161/// "selected" attribute to an &lt;option&gt; if its <see cref="SelectListItem.Value"/> (if non-<c>null</c>) or 162/// <see cref="SelectListItem.Text"/> matches the first non-<c>null</c> value found in: 172/// A collection of <see cref="SelectListItem"/> objects used to populate the &lt;select&gt; element with 174/// entry with full name and that entry must be a collection of <see cref="SelectListItem"/> objects. 188IEnumerable<SelectListItem> selectList, 199/// &lt;option&gt; if its <see cref="SelectListItem.Value"/> (if non-<c>null</c>) or 200/// <see cref="SelectListItem.Text"/> matches the first non-<c>null</c> value found in: 208/// A collection of <see cref="SelectListItem"/> objects used to populate the &lt;select&gt; element with 210/// entry with full name and that entry must be a collection of <see cref="SelectListItem"/> objects. 223IEnumerable<SelectListItem> selectList) 234/// &lt;option&gt; if its <see cref="SelectListItem.Value"/> (if non-<c>null</c>) or 235/// <see cref="SelectListItem.Text"/> matches the first non-<c>null</c> value found in: 243/// A collection of <see cref="SelectListItem"/> objects used to populate the &lt;select&gt; element with 245/// entry with full name and that entry must be a collection of <see cref="SelectListItem"/> objects. 262IEnumerable<SelectListItem> selectList, 278/// "selected" attribute to an &lt;option&gt; if its <see cref="SelectListItem.Value"/> (if non-<c>null</c>) or 279/// <see cref="SelectListItem.Text"/> matches the first non-<c>null</c> value found in: 287/// A collection of <see cref="SelectListItem"/> objects used to populate the &lt;select&gt; element with 289/// entry with full name and that entry must be a collection of <see cref="SelectListItem"/> objects. 305IEnumerable<SelectListItem> selectList, 317/// "selected" attribute to an &lt;option&gt; if its <see cref="SelectListItem.Value"/> (if non-<c>null</c>) or 318/// <see cref="SelectListItem.Text"/> matches the first non-<c>null</c> value found in: 334/// <see cref="SelectListItem"/> objects. 347/// &lt;option&gt; if its <see cref="SelectListItem.Value"/> (if non-<c>null</c>) or 348/// <see cref="SelectListItem.Text"/> matches the first non-<c>null</c> value found in: 358/// A collection of <see cref="SelectListItem"/> objects used to populate the &lt;select&gt; element with 360/// entry with full name and that entry must be a collection of <see cref="SelectListItem"/> objects. 371IEnumerable<SelectListItem> selectList) 381/// &lt;option&gt; if its <see cref="SelectListItem.Value"/> (if non-<c>null</c>) or 382/// <see cref="SelectListItem.Text"/> matches the first non-<c>null</c> value found in: 390/// A collection of <see cref="SelectListItem"/> objects used to populate the &lt;select&gt; element with 392/// entry with full name and that entry must be a collection of <see cref="SelectListItem"/> objects. 405IEnumerable<SelectListItem> selectList)
Rendering\IHtmlHelper.cs (14)
254/// "selected" attribute to an &lt;option&gt; if its <see cref="SelectListItem.Value"/> (if non-<c>null</c>) or 255/// <see cref="SelectListItem.Text"/> matches the first non-<c>null</c> value found in: 263/// A collection of <see cref="SelectListItem"/> objects used to populate the &lt;select&gt; element with 265/// full name and that entry must be a collection of <see cref="SelectListItem"/> objects. 282IEnumerable<SelectListItem> selectList, 376/// with a decimal representation of the ordinal as <see cref="SelectListItem.Value"/> 377/// and the display name as <see cref="SelectListItem.Text"/>. 383IEnumerable<SelectListItem> GetEnumSelectList<TEnum>() where TEnum : struct; 397IEnumerable<SelectListItem> GetEnumSelectList(Type enumType); 445/// &lt;option&gt; if its <see cref="SelectListItem.Value"/> (if non-<c>null</c>) or 446/// <see cref="SelectListItem.Text"/> matches an entry in the first non-<c>null</c> collection found in: 454/// A collection of <see cref="SelectListItem"/> objects used to populate the &lt;select&gt; element with 455/// &lt;optgroup&gt; and &lt;option&gt; elements. If <c>null</c>, finds the <see cref="SelectListItem"/> 468IHtmlContent ListBox(string expression, IEnumerable<SelectListItem> selectList, object htmlAttributes);
Rendering\IHtmlHelperOfT.cs (10)
116/// "selected" attribute to an &lt;option&gt; if its <see cref="SelectListItem.Value"/> (if non-<c>null</c>) or 117/// <see cref="SelectListItem.Text"/> matches the first non-<c>null</c> value found in: 124/// A collection of <see cref="SelectListItem"/> objects used to populate the &lt;select&gt; element with 126/// full name and that entry must be a collection of <see cref="SelectListItem"/> objects. 144IEnumerable<SelectListItem> selectList, 238/// &lt;option&gt; if its <see cref="SelectListItem.Value"/> (if non-<c>null</c>) or 239/// <see cref="SelectListItem.Text"/> matches an entry in the first non-<c>null</c> collection found in: 246/// A collection of <see cref="SelectListItem"/> objects used to populate the &lt;select&gt; element with 247/// &lt;optgroup&gt; and &lt;option&gt; elements. If <c>null</c>, finds the <see cref="SelectListItem"/> 263IEnumerable<SelectListItem> selectList,
Rendering\MultiSelectList.cs (16)
14/// of <see cref="SelectListItem"/> objects. 16public class MultiSelectList : IEnumerable<SelectListItem> 19private IList<SelectListItem> _selectListItems; 75/// <param name="items">The items used to build each <see cref="SelectListItem"/> of the list.</param> 77/// <see cref="SelectListItem"/>.</param> 79/// <see cref="SelectListItem"/>.</param> 81/// corresponding <see cref="SelectListItem"/>.</param> 83/// <see cref="SelectListItem"/>.</param> 131public virtual IEnumerator<SelectListItem> GetEnumerator() 141private IList<SelectListItem> GetListItems() 148private IList<SelectListItem> GetListItemsWithValueField() 160var listItems = new List<SelectListItem>(); 164var newListItem = new SelectListItem 178private IList<SelectListItem> GetListItemsWithoutValueField() 186var listItems = new List<SelectListItem>(); 189var newListItem = new SelectListItem
Rendering\SelectList.cs (6)
11/// of <see cref="SelectListItem"/> objects. 71/// <param name="items">The items used to build each <see cref="SelectListItem"/> of the list.</param> 73/// <see cref="SelectListItem"/>.</param> 75/// <see cref="SelectListItem"/>.</param> 77/// <see cref="SelectListItem"/>.</param> 79/// <see cref="SelectListItem"/>.</param>
Rendering\SelectListItem.cs (17)
14/// Initializes a new instance of <see cref="SelectListItem"/>. 19/// Initializes a new instance of <see cref="SelectListItem"/>. 21/// <param name="text">The display text of this <see cref="SelectListItem"/>.</param> 22/// <param name="value">The value of this <see cref="SelectListItem"/>.</param> 31/// Initializes a new instance of <see cref="SelectListItem"/>. 33/// <param name="text">The display text of this <see cref="SelectListItem"/>.</param> 34/// <param name="value">The value of this <see cref="SelectListItem"/>.</param> 35/// <param name="selected">Value that indicates whether this <see cref="SelectListItem"/> is selected.</param> 43/// Initializes a new instance of <see cref="SelectListItem"/>. 45/// <param name="text">The display text of this <see cref="SelectListItem"/>.</param> 46/// <param name="value">The value of this <see cref="SelectListItem"/>.</param> 47/// <param name="selected">Value that indicates whether this <see cref="SelectListItem"/> is selected.</param> 48/// <param name="disabled">Value that indicates whether this <see cref="SelectListItem"/> is disabled.</param> 56/// Gets or sets a value that indicates whether this <see cref="SelectListItem"/> is disabled. 70/// Gets or sets a value that indicates whether this <see cref="SelectListItem"/> is selected. 77/// Gets or sets a value that indicates the display text of this <see cref="SelectListItem"/>. 83/// Gets or sets a value that indicates the value of this <see cref="SelectListItem"/>.
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (81)
DefaultEditorTemplatesTest.cs (4)
1474IEnumerable<SelectListItem> selectList, 1515public IEnumerable<SelectListItem> GetEnumSelectList<TEnum>() where TEnum : struct 1520public IEnumerable<SelectListItem> GetEnumSelectList(Type enumType) 1540public IHtmlContent ListBox(string name, IEnumerable<SelectListItem> selectList, object htmlAttributes)
DefaultHtmlGeneratorTest.cs (3)
100selectList: new List<SelectListItem>(), 127selectList: new List<SelectListItem>(), 499viewContext.ViewData[nameof(Model.Name)] = Enumerable.Empty<SelectListItem>();
Rendering\HtmlHelperDropDownListExtensionsTest.cs (8)
12private static readonly List<SelectListItem> BasicSelectList = new List<SelectListItem> 75var selectList = new List<SelectListItem> 100var selectList = new List<SelectListItem> 127var selectList = new List<SelectListItem> 175var selectList = new List<SelectListItem> 201var selectList = new List<SelectListItem> 227var selectList = new List<SelectListItem>
Rendering\HtmlHelperListBoxExtensionsTest.cs (6)
12private static readonly List<SelectListItem> BasicSelectList = new List<SelectListItem> 51var selectList = new List<SelectListItem> 76var selectList = new List<SelectListItem> 123var selectList = new List<SelectListItem> 148var selectList = new List<SelectListItem>
Rendering\HtmlHelperSelectTest.cs (60)
27private static readonly List<SelectListItem> BasicSelectList = new List<SelectListItem> 34private static readonly List<SelectListItem> SomeDisabledOneSelectedSelectList = new List<SelectListItem> 41private static readonly List<SelectListItem> SomeGroupedSomeSelectedSelectList = new List<SelectListItem> 48private static readonly List<SelectListItem> OneGroupSomeSelectedSelectList = new List<SelectListItem> 55private static readonly List<SelectListItem> OneDisabledGroupAllSelectedSelectList = new List<SelectListItem> 62private static readonly List<SelectListItem> SourcesSelectList = new List<SelectListItem> 75public static TheoryData<IEnumerable<SelectListItem>, string, string> DropDownListDataSet 79return new TheoryData<IEnumerable<SelectListItem>, string, string> 178public static TheoryData<IEnumerable<SelectListItem>, string, string, string> ListBoxDataSet 182return new TheoryData<IEnumerable<SelectListItem>, string, string, string> 321IEnumerable<SelectListItem> selectList, 348IEnumerable<SelectListItem> selectList, 368IEnumerable<SelectListItem> selectList, 388IEnumerable<SelectListItem> selectList, 594IEnumerable<SelectListItem> selectList, 617IEnumerable<SelectListItem> selectList, 641IEnumerable<SelectListItem> selectList, 665IEnumerable<SelectListItem> selectList, 741IEnumerable<SelectListItem> selectList, 769IEnumerable<SelectListItem> selectList, 790IEnumerable<SelectListItem> selectList, 997IEnumerable<SelectListItem> selectList, 1017IEnumerable<SelectListItem> selectList, 1062IEnumerable<SelectListItem> selectList, 1083IEnumerable<SelectListItem> selectList, 1115IEnumerable<SelectListItem> selectList, 1139IEnumerable<SelectListItem> selectList, 1159IEnumerable<SelectListItem> selectList, 1179IEnumerable<SelectListItem> selectList, 1208IEnumerable<SelectListItem> selectList, 1230IEnumerable<SelectListItem> selectList, 1251IEnumerable<SelectListItem> selectList, 1320var zeroSelect = Assert.Single(result, s => s.Value.Equals("0", StringComparison.Ordinal)); 1402public static TheoryData<Type, IEnumerable<SelectListItem>> GetEnumSelectListData 1406return new TheoryData<Type, IEnumerable<SelectListItem>> 1408{ typeof(EmptyEnum), Enumerable.Empty<SelectListItem>() }, 1409{ typeof(EmptyEnum?), Enumerable.Empty<SelectListItem>() }, 1412new List<SelectListItem> 1424new List<SelectListItem> 1436new List<SelectListItem> 1449new List<SelectListItem> 1462new List<SelectListItem> 1474new List<SelectListItem> 1490public void GetEnumSelectList_ReturnsExpectedItems(Type type, IEnumerable<SelectListItem> expected) 1553private void VerifySelectList(IEnumerable<SelectListItem> expected, IEnumerable<SelectListItem> actual) 1559var expectedItem = expected.ElementAt(i); 1560var actualItem = actual.ElementAt(i); 1585public IEnumerable<SelectListItem> SelectListItems { get; private set; } 1587public IEnumerable<SelectListItem> CopiedSelectListItems { get; private set; } 1589protected override IEnumerable<SelectListItem> GetEnumSelectList(ModelMetadata metadata) 1596var copiedSelectListItems = new List<SelectListItem>(); 1598foreach (var item in SelectListItems) 1600var copy = new SelectListItem