Exemple #1
0
        public void AddTripToUserTestTripNameField()
        {
            // Arrange
            var user = new User();
            var repo = new FakeTripRepository();

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