public static void WriteDescriptionToConsole(this object target) { var description = Description.For(target); var writer = new DescriptionTextWriter(description); writer.WriteToConsole(); }
public static string ToDescriptionText(this object target) { var description = Description.For(target); var writer = new DescriptionTextWriter(description); return writer.ToString(); }
public static string ToDescriptionText(this object target) { var description = Description.For(target); var writer = new DescriptionTextWriter(description); return(writer.ToString()); }
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()); }