public void ShouldGetMyTrips() { const string token = "faker"; var mockFamily = new List <FamilyMember> { new FamilyMember { ContactId = 12345 }, new FamilyMember { ContactId = 98765 } }; _serveService.Setup(m => m.GetImmediateFamilyParticipants(token)).Returns(mockFamily); _apiUserReposity.Setup(m => m.GetToken()).Returns(token); _configurationWrapper.Setup(m => m.GetConfigIntValue(It.IsAny <string>())).Returns(10); _donationService.Setup(m => m.GetMyTripDistributions(It.IsAny <int>())).Returns(MockTripDonationsResponse()); _eventParticipantService.Setup(m => m.TripParticipants(It.IsAny <string>())).Returns(mockTripParticipants()); _pledgeService.Setup(m => m.GetPledgeByCampaignAndDonor(It.IsAny <int>(), It.IsAny <int>())).Returns(mockPledge()); _tripRepository.Setup(m => m.GetTripDocuments(It.IsAny <int>(), token)).Returns(new List <MpEventParticipantDocument>()); var myTrips = _fixture.GetMyTrips(token); _serveService.VerifyAll(); _donationService.VerifyAll(); _eventParticipantService.VerifyAll(); Assert.IsNotNull(myTrips); Assert.AreEqual(2, myTrips.MyTrips.Count); Assert.AreEqual(2, myTrips.MyTrips[0].TripGifts.Count); }