public async Task GetTrip() { // Inject CreateIdentity(Users[0].Auth); // Arrange var expected = mapper.Map <UserTripsViewModel>(UserTrips[0]); // Act var result = await controller.GetTrip(UserTrips[0].Id); // Assert Assert.Equal(Serialize(expected), Serialize(((OkObjectResult)result).Value)); }
internal Trip GetItem(int linkId) { return(TripController.GetTrip(linkId)); }