Beispiel #1
0
        public void ShouldReturnAllTrips()
        {
            var trips = TripManager.Trips.ToList();

            Assert.That(trips, Is.EqualTo(Trips.Values));
            var unused = Uow.DidNotReceive().CommitAsync();
        }
Beispiel #2
0
        public void ShouldGetTripByIdReturnRightTrip()
        {
            var sampleTrip = Trips.First();
            var trip       = TripManager.GetTripById(sampleTrip.Key);

            Assert.That(trip, Is.EqualTo(sampleTrip.Value));
            var unused = Uow.DidNotReceive().CommitAsync();
        }