Beispiel #1
0
 private void MapFrom_is_called(OutputClass destination)
 {
     _expected = new OutputClass
         {
             BooleanProperty = _source.BooleanProperty,
             IntegerProperty = _source.IntegerProperty,
             StringProperty = _source.StringProperty,
             DecimalProperty = _source.DecimalProperty,
             DateTimeProperty = _source.DateTimeProperty,
             DateTimeToNullable = _source.DateTimeToNullable
         };
     destination.MapFrom(_source);
 }
Beispiel #2
0
            private void MapFrom_is_called_with_properties_to_ignore(OutputClass destination)
            {
                _expected = new OutputClass
                    {
                        BooleanProperty = _source.BooleanProperty,
                        IntegerProperty = _source.IntegerProperty,
                        StringProperty = _source.StringProperty,
                        DecimalProperty = 0,
                        DateTimeProperty = _source.DateTimeProperty,
                        DateTimeToNullable = _source.DateTimeToNullable
                    };

                destination.MapFrom(_source, x => x.DecimalProperty);
            }