Esempio n. 1
0
        protected void Run(Type type)
        {
            classContext = new ClassContext(type, convention);

            classContext.Build();

            var method = type.Methods().First().Name;

            Run(type, method);
        }
Esempio n. 2
0
        public void setup()
        {
            parentContext = new ClassContext(typeof(parent_act));

            childContext = new ClassContext(typeof(child_act));

            parentContext.AddContext(childContext);

            instance = new child_act();

            parentContext.Build();
        }
Esempio n. 3
0
        protected void Run(Type type, string methodName)
        {
            classContext = new ClassContext(type, convention);

            var method = type.Methods().Single(s => s.Name == methodName);

            methodContext = new MethodContext(method);

            classContext.AddContext(methodContext);

            classContext.Build();

            classContext.Run();
        }
Esempio n. 4
0
        public void setup()
        {
            conventions = new DefaultConventions();

            conventions.Initialize();

            parentContext = new ClassContext(typeof(parent_before), conventions);

            childContext = new ClassContext(typeof(child_before), conventions);

            parentContext.AddContext(childContext);

            parentContext.Build();

            childContext.Build();
        }