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); }
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); }