Exemplo n.º 1
0
        public static dynamic BuilderFor <T>() where T : class
        {
            var argumentStore = new InMemoryArgumentStore();

            return
                (new DynamicBuilder <T>(
                     new CompositeParser(
                         new NamedArgumentsSyntaxParser(argumentStore),
                         new MethodSyntaxParser(argumentStore)),
                     argumentStore));
        }
Exemplo n.º 2
0
        public static dynamic BuilderFor <T>() where T : class
        {
            var argumentStore = new InMemoryArgumentStore();

            return
                (new DynamicBuilder <T>(
                     new CompositeParser(
                         new NamedArgumentsSyntaxParser(argumentStore),
                         new MethodSyntaxParser(argumentStore)),
                     new Activator(
                         new MissingArgumentsQuery(argumentStore),
                         new ConstructorArgumentsQuery(argumentStore),
                         new PropertyValuesQuery(argumentStore))));
        }