public void Should_be_able_to_set_as_drop_down_list() { builder.AsDropDownList("dummyKey"); Assert.Equal("DropDownList", item.TemplateName); Assert.NotEmpty(item.AdditionalSettings); }
public void Should_be_able_to_set_as_drop_down_list() { builder.AsDropDownList("dummyKey"); var configurator = (IModelMetadataItemConfigurator)builder; var item = new ModelMetadataItem(); configurator.Configure(item); Assert.Equal("DropDownList", item.TemplateName); var configurator1 = (IModelMetadataItemConfigurator)builder; var item1 = new ModelMetadataItem(); configurator1.Configure(item1); Assert.NotEmpty(item1.AdditionalSettings); }