コード例 #1
0
 public void BeforeEachTest()
 {
     Item = new TestData.Item(1, "ItemName");
     PropertyMetaData = PropertyMetaDataMocker.CreateStub("Name", false, null, 100, null, 100, Item.ItemId.GetType());
     TextAreaData = new TextAreaData("value").WithValidationFrom(PropertyMetaData);
 }
コード例 #2
0
 private void when_asked_to_create_a_textarea_for_a_property()
 {
     var propertyMetaData = PropertyMetaDataMocker.CreateStub(Id, _isRequired, _minLength, _maxLength, _minValue, _maxValue, _type);
     var textArea = new TextAreaData(_value)
         .WithValidationFrom(propertyMetaData)
         .WithLabel(_label)
         .WithId(Id);
     var resultHtml = textArea.ToString();
     _result = HTMLParser.Parse("<all>" + resultHtml + "</all>");
 }