public TabStripItemBuilderTests()
        {
            Mock<ViewContext> viewContext = new Mock<ViewContext>();

            _item = new TabStripItem();
            _builder = new TabStripItemBuilder(_item, viewContext.Object);
        }
        public TabStripItemBuilderTests()
        {
            Mock <ViewContext> viewContext = new Mock <ViewContext>();

            _item    = new TabStripItem();
            _builder = new TabStripItemBuilder(_item, viewContext.Object);
        }
Esempio n. 3
0
 public static TabStripItemBuilder AddErrorIcon(this TabStripItemBuilder builder, ModelStateDictionary modelStateDictionary, UrlHelper url, string key)
 {
     if (modelStateDictionary.Any(k => k.Key.StartsWith(key) && k.Value.Errors.Count != 0))
     {
         builder.ImageUrl(url.Content("~/Content/images/infoerror.gif"));
     }
     return(builder);
 }