public void GetDetails_Should_ReturnAircraft_When_Called()
        {
            var plane  = _aircraftService.GetAll().First();
            var result = _aircraftService.GetDetails(plane.Id);

            Assert.AreEqual(plane.Id, result.Id);
        }
Exemplo n.º 2
0
        public void GetDetails_Should_ReturnAircraftDTO_When_Called()
        {
            A.CallTo(() => _fakeUnitOfWork.AircraftRepository.Get(_aircraftId)).Returns(new List <Aircraft> {
                _plane1
            });
            var result = _aircraftService.GetDetails(_aircraftId);

            Assert.AreEqual(_plane1DTO, result);
        }