Esempio n. 1
0
        public void removing_the_called_assembly()
        {
            var pool = new TypePool(GetType().Assembly);

            pool.IgnoreCallingAssembly();

            pool.Assemblies.ShouldNotContain(GetType().Assembly);
        }
        public static void ApplySmartGridConventions(this FubuRegistry registry, Action <AppliesToExpression> configure)
        {
            var pool = new TypePool(null);

            pool.IgnoreCallingAssembly();

            var expression = new AppliesToExpression(pool);

            configure(expression);

            registry.ApplyConvention(new SmartGridConvention(pool));
        }
Esempio n. 3
0
        public void SetUp()
        {
            matcher = new ActionSource(new ActionMethodFilter());

            pool = new TypePool(null);
            pool.IgnoreCallingAssembly();

            pool.AddType <DifferentPatternClass>();
            pool.AddType <OneController>();
            pool.AddType <TwoController>();
            pool.AddType <ThreeController>();

            calls = null;
        }
Esempio n. 4
0
        public void SetUp()
        {
            graph   = new BehaviorGraph(null);
            matcher = new BehaviorMatcher();

            pool = new TypePool(null);
            pool.IgnoreCallingAssembly();

            pool.AddType <DifferentPatternClass>();
            pool.AddType <OneController>();
            pool.AddType <TwoController>();
            pool.AddType <ThreeController>();

            calls = null;
        }