예제 #1
0
        public BootstrapModel()
        {
            NotRequired   = "NotRequired";
            Required      = "Required";
            EditableFalse = 1.4M;
            EditableTrue  = 5.5M;
            Date          = DateTime.Now;
            Number        = 10.7854M;

            Relation = new BootstrapModel(true)
            {
                Date          = new DateTime(2011, 3, 5, 8, 6, 4),
                NotRequired   = "NotRequiredRelation",
                Required      = "RequiredRelation",
                EditableFalse = 14.57M,
                EditableTrue  = 8.4M,
                Number        = 1.6666M
            };
        }
 public BootstrapExtensionsTests()
 {
     html  = HtmlHelperFactory.CreateHtmlHelper(new BootstrapModel());
     model = html.ViewData.Model;
 }