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); }
private RelatedResources CreateRelatedResources() { RelatedResources resources = new RelatedResources(); resources.authorization = GetAuthorization(); resources.capture = GetCapture(); resources.refund = CreateRefund(); resources.sale = CreateSale(); return(resources); }
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); }
public void ToStringTest() { RelatedResources resources = CreateRelatedResources(); Assert.IsFalse(resources.ToString().Length == 0); }
public void ConvertToJsonTest() { RelatedResources resources = CreateRelatedResources(); Assert.IsFalse(resources.ConvertToJson().Length == 0); }