public void PrintErrorMessageWhenUserIsNotLogged()
        {
            var tripService = new TripServiceTesteable(null);
            var user        = new User.User();

            Assert.Throws <UserNotLoggedInException>(() => tripService.GetTripsByUser(user));
        }
        public void NotReturnTripsWhenUserIsNotFriendFromLoggedUser()
        {
            var user        = new User.User();
            var tripService = new TripServiceTesteable(user);

            var trips = tripService.GetTripsByUser(user);

            Assert.Empty(trips);
        }
        public void NotReturnTripsWhenUserAndUserLoggedAreFriendsAndUserHasNotTrips()
        {
            var userLogged  = new User.User();
            var tripService = new TripServiceTesteable(userLogged);

            var user = new User.User();

            user.AddFriend(userLogged);

            var trips = tripService.GetTripsByUser(user);

            Assert.Empty(trips);
        }
        public void ReturnATripWhenUserAndUserLoggedAreFriendsAndUserHasOneTrip()
        {
            var userLogged  = new User.User();
            var tripService = new TripServiceTesteable(userLogged);

            var user = new User.User();

            user.AddFriend(userLogged);

            user.AddTrip(new Trip.Trip());
            var trips = tripService.GetTripsByUser(user);

            Assert.NotEmpty(trips);
        }