public async Task dUpdateTruck() { ActionResult <Vehicle> result = await _controller.GetVehicleName(testTrucks[1].Name); Vehicle truck = result.Value; truck.Model = testTrucks[2].Model; truck.Year = testTrucks[2].Year; var res = await _controller.PutVehicle(truck.Id, truck); result = await _controller.GetVehicleId(truck.Id); Vehicle updatedTruck = result.Value; if (truck.Model == updatedTruck.Model && truck.Make == updatedTruck.Make && truck.Year == updatedTruck.Year) { Assert.Pass(); } else { Assert.Fail(); } }