예제 #1
0
 public FormGroup(HtmlString input, HtmlString label, FormGroupType type, bool fieldIsValid = true)
 {
     _input = input;
     _label = label;
     _type = type;
     _fieldIsValid = fieldIsValid;
 }
 public BootstrapFormGroup(string input, string label, FormGroupType type, bool fieldIsValid = true)
 {
     this._input        = input;
     this._label        = label;
     this._type         = type;
     this._fieldIsValid = fieldIsValid;
 }
예제 #3
0
 public void Process_Should_Set_Normal_Type_ClassAttribute(FormGroupType type)
 {
     _tagHelper.FormGroupType = type;
     _tagHelper.Process(_tagHelperContext, _tagHelperOutput);
     Assert.Equal(CssClasses.NhsUkFormGroup, _tagHelperOutput.Attributes[HtmlAttributes.ClassAttribute].Value);
 }