public void ConvertToModel_Should_ReturnModel_When_Called() { A.CallTo(() => _fakeMapper.Map <DTO.Pilot, Pilot>(_pilotDTO)).Returns(_pilot); var result = _pilotService.ConvertToModel(_pilotDTO); Assert.AreEqual(_pilot, result); }
public void ConvertToModel_Should_ReturnModel_When_Called() { A.CallTo(() => _fakeMapper.Map <DTO.Pilot, Pilot>(_pilotDTO)).Returns(_pilot); var result = _pilotService.ConvertToModel(_pilotDTO); Assert.AreEqual(_pilot, result); }