Destination <object> ITypeConverter <OtherSource <T>, Destination <object> > .Convert( OtherSource <T> source, Destination <object> dest, ResolutionContext context ) { return(ClosedDestinationViaOpenSource); }
OtherDestination <T> ITypeConverter <OtherSource <T>, OtherDestination <T> > .Convert( OtherSource <T> source, OtherDestination <T> dest, ResolutionContext context ) { return(SomeOtherDestination); }
protected override void Because_of() { var source = new OtherSource { Children = new Collection <Child> { new OtherChild(), new OtherChild() } }; _dest = Mapper.Map <Source, Dest>(source); }
protected override void Because_of() { var source = new OtherSource { Children = new Collection<Child> { new OtherChild(), new OtherChild() } }; _dest = Mapper.Map<Source, Dest>(source); }
public void Should_apply_converters() { var source = new Source { Value = 1, }; var otherSource = new OtherSource { Value = 2, }; var dest = Mapper.Map <Source, Dest>(source); var otherDest = Mapper.Map <OtherSource, OtherDest>(otherSource); dest.Value.ShouldBe("00000001"); otherDest.Value.ShouldBe("00000002"); }