private static bool RequireSponsoredChild(TripApplicationDto.ApplicationPageFive page5) { return(page5.SponsorChildFirstName != null || page5.SponsorChildLastName != null || page5.SponsorChildNumber != null); }
private TripApplicationDto mockTripApplication(int contactid, int pledgeid) { var depositInfo = new TripApplicationDto.ApplicationDepositInformation(); depositInfo.DonationAmount = "300"; depositInfo.DonationDate = "1/1/2011"; depositInfo.PaymentMethod = "Bank"; var pageTwo = new TripApplicationDto.ApplicationPageTwo(); pageTwo.Allergies = ""; pageTwo.GuardianFirstName = "Bob"; pageTwo.GuardianLastName = "Smith"; pageTwo.Referral = ""; pageTwo.ScrubSizeBottom = "S"; pageTwo.ScrubSizeTop = "S"; pageTwo.SpiritualLife = new string[] { "" }; pageTwo.Why = ""; var pageThree = new TripApplicationDto.ApplicationPageThree(); pageThree.EmergencyContactEmail = "*****@*****.**"; pageThree.EmergencyContactFirstName = "bob"; pageThree.EmergencyContactLastName = "roberts"; pageThree.EmergencyContactPrimaryPhone = "888-888-8888"; pageThree.EmergencyContactSecondaryPhone = "555-555-5555"; pageThree.Conditions = ""; var pageFour = new TripApplicationDto.ApplicationPageFour(); pageFour.GroupCommonName = "group name"; pageFour.InterestedInGroupLeader = "No"; pageFour.RoommateFirstChoice = "Pete Rose"; pageFour.RoommateSecondChoice = "Bill Clinton"; pageFour.SupportPersonEmail = "*****@*****.**"; pageFour.WhyGroupLeader = ""; var pageFive = new TripApplicationDto.ApplicationPageFive(); pageFive.NolaFirstChoiceExperience = "first choice"; pageFive.NolaFirstChoiceWorkTeam = "first work team"; pageFive.NolaSecondChoiceWorkTeam = "second work team"; pageFive.SponsorChildFirstName = "Suzy"; pageFive.SponsorChildLastName = "Sponserchild"; pageFive.SponsorChildNumber = "99"; pageFive.SponsorChildTown = "Townville"; var pageSix = new TripApplicationDto.ApplicationPageSix(); pageSix.DescribeExperienceAbroad = "None"; pageSix.ExperienceAbroad = "None"; pageSix.FrequentFlyers = new string[] { "" }; pageSix.InternationalTravelExpericence = "NA"; pageSix.PassportCountry = ""; pageSix.PassportExpirationDate = ""; pageSix.PassportFirstName = ""; pageSix.PassportLastName = ""; pageSix.PassportMiddleName = ""; pageSix.PassportNumber = ""; pageSix.PastAbuseHistory = "None"; var dto = new TripApplicationDto(); dto.ContactId = contactid; dto.PledgeCampaignId = pledgeid; dto.InviteGUID = ""; dto.DepositInformation = depositInfo; dto.PageTwo = pageTwo; dto.PageThree = pageThree; dto.PageFour = pageFour; dto.PageFive = pageFive; dto.PageSix = pageSix; return(dto); }