public void GetDeliveryStatus_Invalid_TransactionIdJson() { var target = new ElasticemailWebApi(_apiKey); var actual = target.GetDeliveryStatusJson(Guid.Parse("f088b2e9-5412-47f2-9cec-225b71ee6672")); Assert.AreEqual(ResultType.Error, actual.ResultType); Assert.AreEqual("{\"success\":false,\"error\":\"No job with transactionId f088b2e9-5412-47f2-9cec-225b71ee6672 could be found.\"}", actual.ErrorMessage); }
public void GetDeliveryStatus_Valid_TransactionIdJson() { Guid id = Guid.Parse(" f088b2e9-5412-47f2-9cec-225b71ee667c"); var target = new ElasticemailWebApi(_apiKey); DeliveryStatusResponseJson actual = target.GetDeliveryStatusJson(id); Assert.AreEqual(ResultType.Success, actual.ResultType); Assert.AreEqual(id, actual.DeliveryStatus.data.Id); Assert.AreEqual("complete", actual.DeliveryStatus.data.Status); Assert.AreEqual(1, actual.DeliveryStatus.data.DeliveredCount); }