コード例 #1
0
ファイル: ConfigGraphTester.cs プロジェクト: swcomp/fubumvc
        public void add_configuration_action_with_default_configuration_type()
        {
            var graph = new ConfigGraph(Assembly.GetExecutingAssembly());

            var action = new IndeterminateAction();

            graph.Add(action, ConfigurationType.Explicit);

            graph.ActionsFor(ConfigurationType.Explicit).Single()
                .ShouldBeTheSameAs(action);
        }
コード例 #2
0
        public void add_configuration_action_with_default_configuration_type()
        {
            var graph = new ConfigGraph();

            var action = new IndeterminateAction();

            graph.Push(new SomeFubuRegistry());
            graph.Add(action, ConfigurationType.Explicit);

            graph.ActionsFor(ConfigurationType.Explicit).Single()
            .ShouldBeTheSameAs(action);
        }
コード例 #3
0
        public void add_configuration_action_with_default_configuration_type()
        {
            var graph = new ConfigGraph();

            var action = new IndeterminateAction();

            graph.Push(new SomeFubuRegistry());
            graph.Add(action, ConfigurationType.Explicit);

            graph.ActionsFor(ConfigurationType.Explicit).Single()
                .ShouldBeTheSameAs(action);
        }