/* Footer */ public MvcHtmlString Footer(params BootStrapButtonSettings[] Buttons) { //Create a buffer to hold the contents StringBuilder sb = new StringBuilder(); BootStrapExtensions ext = new BootStrapExtensions(_currentHelper); sb.Append("<div class=\"modal-footer\">"); foreach (BootStrapButtonSettings button in Buttons) { string buttonHtml = ext.Button(button).ToHtmlString(); sb.Append(buttonHtml); } sb.Append("</div>"); return new MvcHtmlString(sb.ToString()); }
public ButtonTests() { //This is an ugly way to mock the HTML helper, but it'll have to do for now _BootStrap = BootStrapHtmlHelper.Bootstrap(new HtmlHelper(new ViewContext(), new ViewPage())); }