예제 #1
0
        public void SetUp()
        {
            var services = new InMemoryServiceLocator();


            theDocument = new FubuHtmlDocument(services);
            theDocument.Push("div");

            theBuilder = new DetailTableBuilder(theDocument);
        }
예제 #2
0
        public static void AddDetail(this DetailTableBuilder builder, string label, Type type)
        {
            if (type == null)
            {
                return;
            }

            builder.AddDetailByPartial(label, new TypeInput {
                Type = type
            });
        }
예제 #3
0
        private DetailsTableTag buildDetails(RouteReport report)
        {
            var builder = new DetailTableBuilder(_document);

            builder.AddDetail("Route", report.Route);
            builder.AddDetail("Http Verbs", report.Constraints);

            builder.AddDetail("Url Category", report.UrlCategory);
            builder.AddDetail("Origin", report.Origin);

            builder.AddDetail("Input Type", report.InputModel);
            builder.AddDetail("Resource Type", report.ResourceType);

            builder.AddDetail("Accepts", report.Accepts);

            builder.AddDetail("Content Type", report.ContentType);

            return(builder.DetailTag);
        }