public void GetDeliveryStatus_Invalid_TransactionId()
        {
            var target = new ElasticemailWebApi(_apiKey);

            var actual = target.GetDeliveryStatus(Guid.Parse("53b12541-1234-49b3-b57a-dd64e09cde5f"));

            Assert.AreEqual(ResultType.Error, actual.ResultType);
            Assert.AreEqual("No job with transactionId 53b12541-1234-49b3-b57a-dd64e09cde5f could be found.", actual.ErrorMessage);
        }
        public void GetDeliveryStatus_Valid_TransactionId()
        {
            Guid id     = Guid.Parse("53b12541-210e-49b3-b57a-dd64e09cde5f");
            var  target = new ElasticemailWebApi(_apiKey);

            var actual = target.GetDeliveryStatus(id);

            Assert.AreEqual(ResultType.Success, actual.ResultType);
            Assert.AreEqual(id, actual.DeliveryStatus.Id);
            Assert.AreEqual(1, actual.DeliveryStatus.Delivered);
            Assert.AreEqual("complete", actual.DeliveryStatus.Status);
        }
        public void GetDeliveryStatus_Invalid_TransactionId()
        {
            var target = new ElasticemailWebApi(_apiKey);

            var actual = target.GetDeliveryStatus(Guid.Parse("53b12541-1234-49b3-b57a-dd64e09cde5f"));

            Assert.AreEqual(ResultType.Error, actual.ResultType);
            Assert.AreEqual("No job with transactionId 53b12541-1234-49b3-b57a-dd64e09cde5f could be found.", actual.ErrorMessage);
        }
        public void GetDeliveryStatus_Valid_TransactionId()
        {
            Guid id = Guid.Parse("53b12541-210e-49b3-b57a-dd64e09cde5f");
            var target = new ElasticemailWebApi(_apiKey);

            var actual = target.GetDeliveryStatus(id);

            Assert.AreEqual(ResultType.Success, actual.ResultType);
            Assert.AreEqual(id, actual.DeliveryStatus.Id);
            Assert.AreEqual(1, actual.DeliveryStatus.Delivered);
            Assert.AreEqual("complete", actual.DeliveryStatus.Status);
        }