Beispiel #1
0
        public void add_configuration_action_that_is_marked_with_attribute()
        {
            var graph = new ConfigGraph(Assembly.GetExecutingAssembly());

            var action = new DeterminateAciton();

            graph.Add(action);

            graph.ActionsFor(ConfigurationType.Explicit).Single()
                .ShouldBeTheSameAs(action);
        }
Beispiel #2
0
        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);
        }
        public ConfigurationTypeTag(string configurationType, ConfigGraph graph) : base("div")
        {
            Add("a").Id(configurationType);
            Add("h2").Text(configurationType).Style("margin-bottom", "10px");
            

            graph.ActionsFor(configurationType).Each(action => {
                var desc = Description.For(action);
                var body = new DescriptionBodyTag(desc);
                body.Children.Insert(0, new HtmlTag("h4").Text(desc.Title));

                Append(body);
                Add("hr");
            });
        }