public void GetDonation_WhenSuppliedWithKnownExistingDonationId_ReturnsDonation(WireDataFormat format) { var client = TestContext.CreateClientValidCredentials(format); var donationClient = new DonationApi(client.HttpChannel); var status = donationClient.Retrieve(20905200); Assert.IsNotNull(status); }
public void GetDonation_WhenSuppliedWithKnownExistingReference_ReturnsDonation(WireDataFormat format) { //arrange var client = TestContext.CreateClientNoCredentials(format); var donationsResources = new DonationApi(client.HttpChannel); const string reference = "battlehack"; //act var result = donationsResources.Retrieve(reference); //assert Assert.IsNotNull(result); }