public void Preparer_Is_Called_Before_Transformation() { IAssembler <MappingPreparerDTO_CheckOrder, User> asm = ConfigureType <MappingPreparerDTO_CheckOrder>(); MappingPreparerDTO_CheckOrder dto = asm.AssembleFrom(m_user); Assert.AreEqual(77, dto.Id); // check it is not -1 }
public void Preparer(ref MappingPreparerDTO_CheckOrder dto, ref User user) { dto.Id = -1; }