Exemplo n.º 1
0
        public static void WriteDescriptionToConsole(this object target)
        {
            var description = Description.For(target);
            var writer = new DescriptionTextWriter(description);

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

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

            return(writer.ToString());
        }
Exemplo n.º 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());
        }