public async Task TestCreate() { var actual = await _passengerService.Create(_testPassenger); Assert.AreEqual(_testPassenger, actual, "Create returned a different passenger"); var actualDb = _passengerService.Get(_testPassenger.Id); Assert.AreEqual(_testPassenger, actualDb, "Database returned a different passenger"); }
public ActionResult <List <Passenger> > Get() { return(_passengerService.Get()); }