Try add src and destination (dest) in lambda.
CreateMap<FooClass, BarClass>()
.ForMember(
dest => dest.Status,
opt => opt.MapFrom(
(src, dest) => Enum.TryParse(src.Status ?? string.Empty, out Status result) ? result : Status.TEST_READY)
);
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…