public void IsExists_ShouldReturnPilotDto_WhenPilotExists() { A.CallTo(() => _fakeUnitOfWork.Set <Pilot>().Get(_pilotId)).Returns(new List <Pilot> { _pilot }); var result = _pilotService.IsExist(_pilotId); Assert.AreEqual(_pilotDTO, result); }