private string build_behaviour_block_using(IConcernGroup concern_group)
        {
            var builder = new StringBuilder();

            builder.AppendFormat("{3}### {0} [ {1} Scenario(s), {2} Observation(s) ]{3}", concern_group.concerned_with.Name, concern_group.total_number_of_concerns,
                                 concern_group.total_number_of_observations, Environment.NewLine);
            concern_group.concerns.OrderBy(x => x.name.name).each(cg => builder.Append(build_concern_block_using(cg)));
            return(builder.ToString());
        }
 private string build_behaviour_block_using(IConcernGroup concern_group)
 {
     var builder = new StringBuilder();
     builder.AppendFormat("<li><h1>Behaviour of: {0} [ {1} Concern(s) , {2} Observation(s) ]</h1>", concern_group.concerned_with.Name, concern_group.total_number_of_concerns,
                          concern_group.total_number_of_observations);
     builder.AppendFormat("<ul class=\"concern\">");
     concern_group.concerns.OrderBy(x => x.name.name).each(cg => builder.Append(build_concern_block_using(cg)));
     builder.Append("</ul></li>");
     return builder.ToString();
 }
Example #3
0
        private string build_behaviour_block_using(IConcernGroup concern_group)
        {
            var builder = new StringBuilder();

            builder.AppendFormat("<h1><li>Behaviour of: {0} [ {1} Concern(s) , {2} Observation(s) ]</li></h1>", concern_group.concerned_with.Name, concern_group.total_number_of_concerns,
                                 concern_group.total_number_of_observations);
            builder.AppendFormat("<ul>");
            concern_group.concerns.OrderBy(x => x.name.name).each(cg => builder.Append(build_concern_block_using(cg)));
            builder.Append("</ul>");
            return(builder.ToString());
        }
Example #4
0
        protected override void establish_context()
        {
            base.establish_context();
            first_concern_group  = dependency <IConcernGroup>();
            second_concern_group = dependency <IConcernGroup>();

            first_concern_group.setup_result(x => x.total_number_of_observations).Return(15);
            second_concern_group.setup_result(x => x.total_number_of_observations).Return(20);
            concern_groups_in_report.Add(first_concern_group);
            concern_groups_in_report.Add(second_concern_group);

            sut = create_sut();
        }