public void merge_testing() { var secondFactory = new TagFactory(); secondFactory.AddBuilder(new LambdaElementBuilder(def => def.Is <int>(), def => request => new TextboxTag().AddClass("integer"))); secondFactory.AddModifier(new LambdaElementModifier(def => true, def => (r, t) => t.AddClass("editor"))); factory.Merge(secondFactory); HtmlTag tag = For(x => x.Order); tag.ShouldHaveClass("integer"); tag.ShouldHaveClass("editor"); }