public void SetUp() { testBench = new Page(); intEditable = new EditableEnumAttribute("Integer", 0, typeof(enumDays)) { Name = "DaysInteger" }; stringEditable = new EditableEnumAttribute("String", 1, typeof(enumDays)) { Name = "DaysString" }; enumEditable = new EditableEnumAttribute("Enum", 2, typeof(enumDays)) { Name = "DaysEnum" }; intEditor = (DropDownList)intEditable.AddTo(testBench); stringEditor = (DropDownList)stringEditable.AddTo(testBench); enumEditor = (DropDownList)enumEditable.AddTo(testBench); item = new EnumableItem(); item.DaysEnum = enumDays.Mon; item.DaysInteger = 1; item.DaysString = "Mon"; }
public override void SetUp() { dta = new DisplayableTokensAttribute { Name = "DaysString" }; item = CreateOneItem<EnumableItem>(1, "item", null); base.SetUp(); }