GetSale() 공개 정적인 메소드

public static GetSale ( ) : Sale
리턴 PayPal.Api.Sale
예제 #1
0
        public void RelatedResourcesObjectTest()
        {
            var resources = GetRelatedResources();

            Assert.Equal(resources.authorization.id, AuthorizationTest.GetAuthorization().id);
            Assert.Equal(resources.sale.id, SaleTest.GetSale().id);
            Assert.Equal(resources.refund.id, RefundTest.GetRefund().id);
            Assert.Equal(resources.capture.id, CaptureTest.GetCapture().id);
        }
예제 #2
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);
        }