OtherDestination <T> ITypeConverter <Source <object>, OtherDestination <T> > .Convert( Source <object> source, OtherDestination <T> dest, ResolutionContext context ) { return(OpenDestinationViaClosedSource); }
OtherDestination <T> ITypeConverter <OtherSource <T>, OtherDestination <T> > .Convert( OtherSource <T> source, OtherDestination <T> dest, ResolutionContext context ) { return(SomeOtherDestination); }
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>()); }
protected override void Because_of() { _destination = Mapper.Map <Destination <int> >(new Source <int>()); _otherDestination = Mapper.Map <OtherDestination <int> >(new OtherSource <int>()); }