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