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