public void TestInsertBeginMessage() { var tripMessage = InsertBeginMessage(); var trip = TripBl.GetTrip(tripMessage.TripId); Assert.That(trip, Is.Not.Null); Assert.That(trip.BeginEpoch, Is.EqualTo(tripMessage.Epoch)); Assert.That(trip.EndEpoch, Is.Null); Assert.That(trip.Fare, Is.Null); Assert.That(trip.Id, Is.EqualTo(tripMessage.TripId)); Assert.That(trip.LastLatitude, Is.EqualTo(tripMessage.Latitude.Value)); Assert.That(trip.LastLongitude, Is.EqualTo(tripMessage.Longitude.Value)); Assert.That(trip.LastMessageEpoch, Is.EqualTo(tripMessage.Epoch)); }