Пример #1
0
 public override void SetUp()
 {
     dta = new DisplayableTokensAttribute {
         Name = "DaysString"
     };
     item = CreateOneItem <EnumableItem>(1, "item", null);
     base.SetUp();
 }
Пример #2
0
        /// <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));
        }