Creates items for the DropDownItem.
Inheritance: IHideObjectMembers
        /// <summary>
        /// Defines the items in the DropDownList
        /// </summary>
        /// <param name="addAction">The add action.</param>
        /// <example>
        /// <code lang="CS">
        ///  &lt;%= Html.Telerik().DropDownList()
        ///             .Name("DropDownList")
        ///             .Items(items =>
        ///             {
        ///                 items.Add().Text("First Item");
        ///                 items.Add().Text("Second Item");
        ///             })
        /// %&gt;
        /// </code>
        /// </example>
        public TDropDownBuilder Items(Action <DropDownItemFactory> addAction)
        {
            Guard.IsNotNull(addAction, "addAction");

            Component.Items.Clear();

            DropDownItemFactory factory = new DropDownItemFactory(Component.Items);

            addAction(factory);

            return(this as TDropDownBuilder);
        }
 public DropDownItemFactoryTests()
 {
     collection = new List<DropDownItem>();
     factory = new DropDownItemFactory(collection);
 }