예제 #1
0
 OtherDestination <T> ITypeConverter <Source <object>, OtherDestination <T> > .Convert(
     Source <object> source,
     OtherDestination <T> dest,
     ResolutionContext context
     )
 {
     return(OpenDestinationViaClosedSource);
 }
예제 #2
0
 OtherDestination <T> ITypeConverter <OtherSource <T>, OtherDestination <T> > .Convert(
     OtherSource <T> source,
     OtherDestination <T> dest,
     ResolutionContext context
     )
 {
     return(SomeOtherDestination);
 }
예제 #3
0
 protected override void Because_of()
 {
     _destination      = Mapper.Map <Destination <int> >(new Source <int>());
     _otherDestination = Mapper.Map <OtherDestination <int> >(new OtherSource <int>());
     _openGenericToNonGenericDestination    = Mapper.Map <int>(new Source <int>());
     _nonGenericToOpenGenericDestination    = Mapper.Map <Destination <int> >(default(int));
     _openGenericToClosedGenericDestination = Mapper.Map <Destination <object> >(new OtherSource <int>());
     _closedGenericToOpenGenericDestination = Mapper.Map <OtherDestination <int> >(new Source <object>());
 }
예제 #4
0
 protected override void Because_of()
 {
     _destination      = Mapper.Map <Destination <int> >(new Source <int>());
     _otherDestination = Mapper.Map <OtherDestination <int> >(new OtherSource <int>());
 }