private SampleDomainModel BuildSampleDomainModel()
 {
     var model = new SampleDomainModel();
     var setter = new SampleValueSetter();
     setter.AssignSampleValues(model, 0);
     return model;
 }
        public void Source_property_change_should_result_in_destination_property_change()
        {
            var setter = new SampleValueSetter();
            var comparer = new ObjectComparer();
            var viewModelFactory = new SampleViewModelFactory();

            var domainModel1 = new SampleDomainModel();
            setter.AssignSampleValues(domainModel1, 0);
            var viewModel1 = viewModelFactory.Build(domainModel1);

            var domainModel2 = new SampleDomainModel();
            setter.AssignSampleValues(domainModel2, 1);
            var viewModel2 = viewModelFactory.Build(domainModel2);

            comparer.AssertDifference(viewModel1, viewModel2, new []
            {
                "/StaticValue - static value"
            });
        }
 public SampleValueSetterBehavior()
 {
     _sampleValueSetter = new SampleValueSetter();
 }