public void Should_trigger_change_event_on_target_and_fill_source()
        {
            var target = new ComplexTarget();
            var source = CreateSource();
            var binder = new ModelViewBinder <BasicSource>(source);

            binder.Bind(e => e.B, target);

            target.Value = 100;

            Assert.True(source.B == 100);
        }
        public void Should_disable_target()
        {
            var target = new ComplexTarget {
                Enabled = true
            };
            var source = CreateSource();
            var binder = new ModelViewBinder <BasicSource>(source);

            binder.Bind(e => e.B, target);

            binder.DisableAll();

            Assert.True(!target.Enabled);
        }