Example #1
0
        public void TestRelatedResources()
        {
            RelatedResources resources = CreateRelatedResources();

            Assert.AreEqual(resources.authorization.id, GetAuthorization().id);
            Assert.AreEqual(resources.sale.id, CreateSale().id);
            Assert.AreEqual(resources.refund.id, CreateRefund().id);
            Assert.AreEqual(resources.capture.id, GetCapture().id);
        }
Example #2
0
        private RelatedResources CreateRelatedResources()
        {
            RelatedResources resources = new RelatedResources();

            resources.authorization = GetAuthorization();
            resources.capture       = GetCapture();
            resources.refund        = CreateRefund();
            resources.sale          = CreateSale();
            return(resources);
        }
Example #3
0
        public static RelatedResources GetRelatedResources()
        {
            RelatedResources resources = new RelatedResources();

            resources.authorization = AuthorizationTest.GetAuthorization();
            resources.capture       = CaptureTest.GetCapture();
            resources.refund        = RefundTest.GetRefund();
            resources.sale          = SaleTest.GetSale();
            resources.order         = OrderTest.GetOrder();
            return(resources);
        }
Example #4
0
        public void ToStringTest()
        {
            RelatedResources resources = CreateRelatedResources();

            Assert.IsFalse(resources.ToString().Length == 0);
        }
Example #5
0
        public void ConvertToJsonTest()
        {
            RelatedResources resources = CreateRelatedResources();

            Assert.IsFalse(resources.ConvertToJson().Length == 0);
        }