Esempio n. 1
0
        public void AddTripTestDestinationField()
        {
            // Arrange
            var repo = new FakeTripRepository();

            //Act
            repo.AddTrip(new Trip()
            {
                TripName        = "Trip Test 1",
                TripStartDate   = DateTime.Parse("01 / 01 / 1990"),
                TripEndDate     = DateTime.Parse("01 / 02 / 1990"),
                TripDestination = "Canada"
            });
            //Assert
            Assert.Equal("Canada", repo.Trips[0].TripDestination);
        }