Exemple #1
0
        public void CreateTripParticipant()
        {
            const int    contactId        = 3123;
            const int    pledgeCampaignId = 09786834;
            const string token            = "asdfasdf";
            var          mockPledge       = this.mockPledge();

            var tripPledgeDto = new Result <MpPledge>(true, mockPledge);

            _apiUserReposity.Setup(m => m.GetToken()).Returns(token);
            _tripRepository.Setup(m => m.AddAsTripParticipant(contactId, pledgeCampaignId, token)).Returns(tripPledgeDto);
            _fixture.CreateTripParticipant(contactId, pledgeCampaignId);

            _apiUserReposity.VerifyAll();
            _tripRepository.VerifyAll();
        }