public override void SetUp() { dta = new DisplayableTokensAttribute { Name = "DaysString" }; item = CreateOneItem <EnumableItem>(1, "item", null); base.SetUp(); }
/// <summary>Specifies the usage of a displayable tokens for rendering this property.</summary> public static Builder <DisplayableTokensAttribute> WithTokens(this EditableBuilder <EditableFreeTextAreaAttribute> builder) { var displayable = new DisplayableTokensAttribute { Name = builder.PropertyName }; builder.Registration.Add(displayable); return(new Builder <DisplayableTokensAttribute>(builder.PropertyName, builder.Registration)); }