protected override void Because_of() { var source = new Source { Value = "a1" }; _dest = Mapper.Map<Source, Dest>(source); }
protected override void Because_of() { _source = new Source {MyName = "jon"}; _dest = Mapper.Map<Source, Destination>(_source); }
protected override void Because_of() { _source = new Source {Name = "jon", Value = "value", Foo = "bar"}; _dest = new Destination(); _dest = Mapper.Map<Source, Destination>(_source); }
public void AddChild(Source child) { Children.Add(child); child.Parent = this; }