Exemplo n.º 1
0
        public void show_with_properties()
        {
            theLog.Report.AddProperty(ReflectionHelper.GetProperty <FakeModel>(x => x.Name), new ConversionPropertyBinder(new BindingRegistry()));
            theLog.Report.Used(new BindingValue {
                RawKey = "somethingelse", RawValue = "raw", Source = "the request"
            });

            var tag = new ModelBindingLogEndpoint().VisualizePartial(theLog).As <CollapsibleTag>();

            tag.ToString().ShouldContain("<tr><td>Name</td><td>ConversionPropertyBinder</td><td>&#39;raw&#39; from &#39;the request&#39;/somethingelse</td></tr>");
        }
Exemplo n.º 2
0
        public void just_show_the_selected_model_binder_if_no_properties()
        {
            var tag = new ModelBindingLogEndpoint().VisualizePartial(theLog).As <CollapsibleTag>();

            tag.ToString().ShouldContain("Used Title of FakeModelBinder");
        }