public TagProfileExpression(TagProfile profile) { _profile = profile; Labels = new TagFactoryExpression(profile.Label); Editors = new TagFactoryExpression(profile.Editor); Displays = new TagFactoryExpression(profile.Display); BeforePartial = new TagFactoryExpression(profile.BeforePartial); AfterPartial = new TagFactoryExpression(profile.AfterPartial); BeforeEachOfPartial = new PartialTagFactoryExpression(profile.BeforeEachOfPartial); AfterEachOfPartial = new PartialTagFactoryExpression(profile.AfterEachOfPartial); }
public void ImportProfile(TagProfile profile) { _profiles[profile.Name].Import(profile); }
public void override_the_label_and_field_layout_with_a_func() { var profile = new TagProfile("default"); profile.UseLabelAndFieldLayout(() => new FakeLabelAndField()); profile.NewLabelAndFieldLayout().ShouldBeOfType<FakeLabelAndField>(); }
public void by_default_the_label_and_field_layout_is_definition_list() { var profile = new TagProfile("default"); profile.NewLabelAndFieldLayout().ShouldBeOfType<DefinitionListLabelAndField>(); }