protected override void Because_of()
 {
     _destination = Mapper.Map <Source, Destination>(new Source {
         Value1 = 3
     });
 }
Beispiel #2
0
 protected override void Because_of()
 {
     _destination = Mapper.Map <Destination>(new Source());
 }
Beispiel #3
0
 protected override void Because_of()
 {
     _destination = Mapper.Map <Destination>(new Source {
         ObjectValue = new object()
     });
 }
 protected override void Because_of()
 {
     _destination = Mapper.Map <Source, Destination>(new Source {
         Values = Enumerable.Repeat(1, 10)
     });
 }
Beispiel #5
0
 protected override void Because_of()
 {
     _result = Mapper.Map(new Source {
         Value = 5
     }, _result);
 }
Beispiel #6
0
 protected override void Because_of()
 {
     _result = Mapper.Map <Source, Destination>(new Source {
         SourceValue = 5
     });
 }
Beispiel #7
0
 public string Resolve(KeyValuePair <TKey, TValue> source, Destination destination, string destMember, ResolutionContext context) => source.Value.ToString();
Beispiel #8
0
 public string Resolve(KeyValuePair <TKey, int> source, Destination destination, int sourceMember, string destMember, ResolutionContext context) => sourceMember.ToString();
 protected override void Because_of()
 {
     _destination = Mapper.Map <Source, Destination>(new Source {
         EnumValue = SomeEnum.Bar
     });
 }
Beispiel #10
0
 protected override void Because_of()
 {
     _destination = Mapper.Map <Source, Destination>(new Source(SomeValue, AnotherValue));
 }
Beispiel #11
0
 protected override void Because_of()
 {
     _destination = Mapper.Map<Destination>(new Source { ObjectValue = new InnerSource { IntValue = 15 } });
 }
Beispiel #12
0
 protected override void Because_of()
 {
     _source = new Source {Name = "jon", Value = "value", Foo = "bar"};
     _dest = new Destination();
     _dest = Mapper.Map<Source, Destination>(_source);
 }
Beispiel #13
0
 protected override void Because_of()
 {
     _source = new Source {MyName = "jon"};
     _dest = Mapper.Map<Source, Destination>(_source);
 }