public async Task ShouldCreateTrip() { var ctrlr = new TripsController(TripManager); var result = await ctrlr.Post( new Trip { StartDate = DateTimeOffset.Now, EndDate = DateTimeOffset.Now.AddDays(2), Destination = "Romania", Comment = string.Empty }) as CreatedNegotiatedContentResult <TripWithId>; Assert.IsNotNull(result); Assert.That(result.Content.Destination, Is.EqualTo("Romania")); Assert.That(result.Content.Comment, Is.Empty); Assert.That(result.Location.ToString(), Is.StringStarting("/trips/")); }