public TagPlan(ITagBuilder builder, IEnumerable <ITagModifier> modifiers, IElementNamingConvention elementNamingConvention) { Builder = builder; ElementNamingConvention = elementNamingConvention; _modifiers.AddRange(modifiers); // Important to force the enumerable to be executed no later than this point }
public TagPlan(ITagBuilder builder, IEnumerable<ITagModifier> modifiers, IElementNamingConvention elementNamingConvention) { Builder = builder; ElementNamingConvention = elementNamingConvention; _modifiers.AddRange(modifiers); // Important to force the enumerable to be executed no later than this point }
public void SetUp() { _page = MockRepository.GenerateStub<IFubuPage<ViewModel>>(); _convention = MockRepository.GenerateStub<IElementNamingConvention>(); _expression = (x=>x.Property); _accessor = _expression.ToAccessor(); _convention.Stub(c => c.GetName(Arg<Type>.Is.Equal(typeof (ViewModel)), Arg<Accessor>.Is.Equal(_accessor))).Return("name"); _page.Stub(p => p.Get<IElementNamingConvention>()).Return(_convention); }
public void SetUp() { _page = MockRepository.GenerateStub <IFubuPage <ViewModel> >(); _convention = MockRepository.GenerateStub <IElementNamingConvention>(); _expression = (x => x.Property); _accessor = _expression.ToAccessor(); _convention.Stub(c => c.GetName(Arg <Type> .Is.Equal(typeof(ViewModel)), Arg <Accessor> .Is.Equal(_accessor))).Return("name"); _page.Stub(p => p.Get <IElementNamingConvention>()).Return(_convention); }
public TagGenerator(TagProfileLibrary library, IElementNamingConvention namingConvention, IServiceLocator services) { ElementPrefix = string.Empty; _library = library; _namingConvention = namingConvention; _services = services; _profile = _library.DefaultProfile; }
public BuilderSet() { _elementNamingConvention = new DefaultElementNamingConvention(); }
public void Import(BuilderSet other) { _policies.AddRange(other._policies); _modifiers.AddRange(other._modifiers); _elementNamingConvention = other._elementNamingConvention; }
public void NamingConvention(IElementNamingConvention elementNamingConvention) => _elementNamingConvention = elementNamingConvention;
public TagGenerator(IElementNamingConvention namingConvention, TagProfileExpression tagProfile) { ElementPrefix = string.Empty; _namingConvention = namingConvention; _profile = tagProfile.Profile; }
public ElementRequestActivator(IFubuRequest request, IElementNamingConvention naming) : base(naming) { _request = request; }
public static string GetName <TModel, TProperty>( this IElementNamingConvention elementNaming, Expression <Func <TModel, TProperty> > property) { return(elementNaming.GetName(typeof(TModel), property.ToAccessor())); }
public void NamingConvention(IElementNamingConvention elementNamingConvention) { _elementNamingConvention = elementNamingConvention; }
public void NamingConvention(IElementNamingConvention elementNamingConvention) => _set.NamingConvention(elementNamingConvention);
public ElementIdActivator(IElementNamingConvention naming) { _naming = naming; }