Esempio n. 1
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);
        }
Esempio n. 2
0
        public void add_configuration_action_that_is_marked_with_attribute()
        {
            var graph = new ConfigGraph();

            graph.Push(new SomeFubuRegistry());

            var action = new DeterminateAciton();

            graph.Add(action);

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