Esempio n. 1
0
 protected override void Because_of()
 {
     var source = new Source { Value = "a1" };
     _dest = Mapper.Map<Source, Dest>(source);
 }
Esempio n. 2
0
 protected override void Because_of()
 {
     _source = new Source {MyName = "jon"};
     _dest = Mapper.Map<Source, Destination>(_source);
 }
Esempio n. 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);
 }
Esempio n. 4
0
 public void AddChild(Source child)
 {
     Children.Add(child);
     child.Parent = this;
 }