예제 #1
0
        public static void WriteDescriptionToConsole(this object target)
        {
            var description = Description.For(target);
            var writer = new DescriptionTextWriter(description);

            writer.WriteToConsole();
        }
예제 #2
0
        public static string ToDescriptionText(this object target)
        {
            var description = Description.For(target);
            var writer = new DescriptionTextWriter(description);

            return writer.ToString();
        }
예제 #3
0
        public static string ToDescriptionText(this object target)
        {
            var description = Description.For(target);
            var writer      = new DescriptionTextWriter(description);

            return(writer.ToString());
        }
예제 #4
0
        public static void WriteDescriptionToConsole(this object target)
        {
            var description = Description.For(target);
            var writer      = new DescriptionTextWriter(description);

            writer.WriteToConsole();
        }
        public void can_write_out_binding_registry_description()
        {
            var bindingRegistry = new BindingRegistry();
            bindingRegistry.Add(new FakeModelBinder());

            var description = Description.For(bindingRegistry);
            var writer = new DescriptionTextWriter(description);

            Debug.WriteLine(writer.ToString());
        }