On CreateMap() I'd like to use the returned value from a function call within a ForMember() to avoid having to call the same function twice.
CreateMap<source, destination>()
.ForMember(dest => dest.Variable2, opt => opt.MapFrom(src => testFunction(src.Variable1))
.ForMember(dest => dest.Variable3, opt => opt.MapFrom(src => testFunction(src.Variable1));