public async Task Should_Delete_Reject() { // Setup string apiKey = ConfigurationManager.AppSettings["APIKey"]; string reject = ConfigurationManager.AppSettings["RejectDelete"]; // Exercise var api = new MandrillApi(apiKey); //Verify RejectAddResult addResponse = await api.AddReject(new AddRejectRequest(reject)); RejectDeleteResult deleteResponse = await api.DeleteReject(new DeleteRejectRequest(addResponse.Email)); Assert.That(deleteResponse.Deleted, Is.True); }
public async Task Should_Add_Reject() { // Setup string apiKey = ConfigurationManager.AppSettings["APIKey"]; string reject = ConfigurationManager.AppSettings["RejectAdd"]; // Exercise var api = new MandrillApi(apiKey); //Verify RejectAddResult actual = await api.AddReject(new AddRejectRequest(reject)); Assert.That(actual.Added, Is.True); Assert.That(actual.Email, Is.EqualTo(reject)); // cleanup await api.DeleteReject(new DeleteRejectRequest(reject)); }