public bool Matches(ElementRequest subject)
 {
     return(_rules.AllRulesFor <IElementTagOverride>(subject.Accessor).Any(x => x.Category == _category && x.Profile == _profile));
 }
 public ITagBuilder <ElementRequest> BuilderFor(ElementRequest subject)
 {
     throw new System.NotImplementedException();
 }
Exemple #3
0
 public HtmlTag DisplayFor(ElementRequest request, string profile = null, T model = null)
 {
     return(build(request, ElementConstants.Display, profile, model));
 }
Exemple #4
0
 public HtmlTag InputFor(ElementRequest request, string profile = null, T model = null)
 {
     return(build(request, ElementConstants.Editor, profile, model));
 }
Exemple #5
0
 // Below methods are tested through the IFubuPage.Show/Edit method tests
 public HtmlTag LabelFor(ElementRequest request, string profile = null, T model = null)
 {
     return(build(request, ElementConstants.Label, profile, model));
 }
Exemple #6
0
 private HtmlTag build(ElementRequest request, string category, string profile = null, T model = null)
 {
     request.Model = model ?? Model;
     return(_tags.Build(request, category, profile: profile));
 }
Exemple #7
0
        private HtmlTag build(Expression <Func <T, object> > expression, string category, string profile = null, T model = null)
        {
            ElementRequest request = GetRequest(expression, model);

            return(_tags.Build(request, category, profile));
        }