public void Output_field_with_hint_id() { var t = new DefaultFormTemplate(); var result = t.Field(new HtmlString("labelhtml"), new HtmlString("elementhtml"), new HtmlString("validationhtml"), null, new FieldConfiguration().WithHint("hello").WithHintId("HintId"), false); HtmlApprovals.VerifyHtml(result.ToHtmlString()); }
public void Output_field_with_container_class() { var t = new DefaultFormTemplate(); var result = t.Field(new HtmlString("labelhtml"), new HtmlString("elementhtml"), new HtmlString("validationhtml"), null, new FieldConfiguration().AddFieldContainerClass("a-container-class-1").AddFieldContainerClass("a-container-class-2"), false); HtmlApprovals.VerifyHtml(result.ToHtmlString()); }
public void Output_field() { var t = new DefaultFormTemplate(); var result = t.Field(new HtmlString("labelhtml"), new HtmlString("elementhtml"), new HtmlString("validationhtml"), null, new ReadonlyFieldConfiguration(new FieldConfiguration()), false); HtmlApprovals.VerifyHtml(result.ToHtmlString()); }
public void Output_field_with_prepended_and_appended_html() { var t = new DefaultFormTemplate(); var result = t.Field(new HtmlString("labelhtml"), new HtmlString("elementhtml"), new HtmlString("validationhtml"), null, new FieldConfiguration() .Prepend(new HtmlString("<1>")).Prepend(new HtmlString("<2>")) .Append(new HtmlString("<3>")).Append(new HtmlString("<4>")), false ); HtmlApprovals.VerifyHtml(result.ToHtmlString()); }
public void Output_field_with_hint() { var t = new DefaultFormTemplate(); var result = t.Field(new HtmlString("labelhtml"), new HtmlString("elementhtml"), new HtmlString("validationhtml"), null, new FieldConfiguration().WithHint("hello"), false); HtmlApprovals.VerifyHtml(result.ToHtmlString()); }