Skip to content

Commit 07a9bb3

Browse files
authored
Merge pull request #52 from CyberSource/feb-release
feb-release
2 parents 2367ac9 + 49c7d2f commit 07a9bb3

File tree

301 files changed

+24963
-320
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

301 files changed

+24963
-320
lines changed

cybersource-rest-client-netstandard/cybersource-rest-client-netstandard.Test/Api/PaymentsApiTests.cs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,19 @@ public void IncrementAuthTest()
8989
//Assert.IsInstanceOf<PtsV2IncrementalAuthorizationPatch201Response> (response, "response is PtsV2IncrementalAuthorizationPatch201Response");
9090
}
9191

92+
/// <summary>
93+
/// Test RefreshPaymentStatus
94+
/// </summary>
95+
[Test]
96+
public void RefreshPaymentStatusTest()
97+
{
98+
// TODO uncomment below to test the method and replace null with proper value
99+
//string id = null;
100+
//RefreshPaymentStatusRequest refreshPaymentStatusRequest = null;
101+
//var response = instance.RefreshPaymentStatus(id, refreshPaymentStatusRequest);
102+
//Assert.IsInstanceOf<PtsV2PaymentsPost201Response1> (response, "response is PtsV2PaymentsPost201Response1");
103+
}
104+
92105
}
93106

94107
}
Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
/*
2+
* CyberSource Merged Spec
3+
*
4+
* All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html
5+
*
6+
* OpenAPI spec version: 0.0.1
7+
*
8+
* Generated by: https://github.com/swagger-api/swagger-codegen.git
9+
*/
10+
11+
using System;
12+
using System.IO;
13+
using System.Collections.Generic;
14+
using System.Collections.ObjectModel;
15+
using System.Linq;
16+
using System.Reflection;
17+
using RestSharp;
18+
using NUnit.Framework;
19+
20+
using CyberSource.Client;
21+
using CyberSource.Api;
22+
using CyberSource.Model;
23+
24+
namespace CyberSource.Test
25+
{
26+
/// <summary>
27+
/// Class for testing Push_FundsApi
28+
/// </summary>
29+
/// <remarks>
30+
/// This file is automatically generated by Swagger Codegen.
31+
/// Please update the test case below to test the API endpoint.
32+
/// </remarks>
33+
[TestFixture]
34+
public class Push_FundsApiTests
35+
{
36+
private Push_FundsApi instance;
37+
38+
/// <summary>
39+
/// Setup before each unit test
40+
/// </summary>
41+
[SetUp]
42+
public void Init()
43+
{
44+
instance = new Push_FundsApi();
45+
}
46+
47+
/// <summary>
48+
/// Clean up after each unit test
49+
/// </summary>
50+
[TearDown]
51+
public void Cleanup()
52+
{
53+
54+
}
55+
56+
/// <summary>
57+
/// Test an instance of Push_FundsApi
58+
/// </summary>
59+
[Test]
60+
public void InstanceTest()
61+
{
62+
// TODO uncomment below to test 'IsInstanceOfType' Push_FundsApi
63+
//Assert.IsInstanceOfType(typeof(Push_FundsApi), instance, "instance is a Push_FundsApi");
64+
}
65+
66+
67+
/// <summary>
68+
/// Test CreatePushFundsTransfer
69+
/// </summary>
70+
[Test]
71+
public void CreatePushFundsTransferTest()
72+
{
73+
// TODO uncomment below to test the method and replace null with proper value
74+
//PushFundsRequest pushFundsRequest = null;
75+
//string contentType = null;
76+
//string xRequestid = null;
77+
//string vCMerchantId = null;
78+
//string vCPermissions = null;
79+
//string vCCorrelationId = null;
80+
//string vCOrganizationId = null;
81+
//var response = instance.CreatePushFundsTransfer(pushFundsRequest, contentType, xRequestid, vCMerchantId, vCPermissions, vCCorrelationId, vCOrganizationId);
82+
//Assert.IsInstanceOf<PushFunds201Response> (response, "response is PushFunds201Response");
83+
}
84+
85+
}
86+
87+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,158 @@
1+
/*
2+
* CyberSource Merged Spec
3+
*
4+
* All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html
5+
*
6+
* OpenAPI spec version: 0.0.1
7+
*
8+
* Generated by: https://github.com/swagger-api/swagger-codegen.git
9+
*/
10+
11+
12+
using NUnit.Framework;
13+
14+
using System;
15+
using System.Linq;
16+
using System.IO;
17+
using System.Collections.Generic;
18+
using CyberSource.Api;
19+
using CyberSource.Model;
20+
using CyberSource.Client;
21+
using System.Reflection;
22+
23+
namespace CyberSource.Test
24+
{
25+
/// <summary>
26+
/// Class for testing PtsV2PaymentsPost201Response1OrderInformationBillTo
27+
/// </summary>
28+
/// <remarks>
29+
/// This file is automatically generated by Swagger Codegen.
30+
/// Please update the test case below to test the model.
31+
/// </remarks>
32+
[TestFixture]
33+
public class PtsV2PaymentsPost201Response1OrderInformationBillToTests
34+
{
35+
// TODO uncomment below to declare an instance variable for PtsV2PaymentsPost201Response1OrderInformationBillTo
36+
//private PtsV2PaymentsPost201Response1OrderInformationBillTo instance;
37+
38+
/// <summary>
39+
/// Setup before each test
40+
/// </summary>
41+
[SetUp]
42+
public void Init()
43+
{
44+
// TODO uncomment below to create an instance of PtsV2PaymentsPost201Response1OrderInformationBillTo
45+
//instance = new PtsV2PaymentsPost201Response1OrderInformationBillTo();
46+
}
47+
48+
/// <summary>
49+
/// Clean up after each test
50+
/// </summary>
51+
[TearDown]
52+
public void Cleanup()
53+
{
54+
55+
}
56+
57+
/// <summary>
58+
/// Test an instance of PtsV2PaymentsPost201Response1OrderInformationBillTo
59+
/// </summary>
60+
[Test]
61+
public void PtsV2PaymentsPost201Response1OrderInformationBillToInstanceTest()
62+
{
63+
// TODO uncomment below to test "IsInstanceOfType" PtsV2PaymentsPost201Response1OrderInformationBillTo
64+
//Assert.IsInstanceOfType<PtsV2PaymentsPost201Response1OrderInformationBillTo> (instance, "variable 'instance' is a PtsV2PaymentsPost201Response1OrderInformationBillTo");
65+
}
66+
67+
/// <summary>
68+
/// Test the property 'FirstName'
69+
/// </summary>
70+
[Test]
71+
public void FirstNameTest()
72+
{
73+
// TODO unit test for the property 'FirstName'
74+
}
75+
/// <summary>
76+
/// Test the property 'LastName'
77+
/// </summary>
78+
[Test]
79+
public void LastNameTest()
80+
{
81+
// TODO unit test for the property 'LastName'
82+
}
83+
/// <summary>
84+
/// Test the property 'NameSuffix'
85+
/// </summary>
86+
[Test]
87+
public void NameSuffixTest()
88+
{
89+
// TODO unit test for the property 'NameSuffix'
90+
}
91+
/// <summary>
92+
/// Test the property 'Address1'
93+
/// </summary>
94+
[Test]
95+
public void Address1Test()
96+
{
97+
// TODO unit test for the property 'Address1'
98+
}
99+
/// <summary>
100+
/// Test the property 'Address2'
101+
/// </summary>
102+
[Test]
103+
public void Address2Test()
104+
{
105+
// TODO unit test for the property 'Address2'
106+
}
107+
/// <summary>
108+
/// Test the property 'Locality'
109+
/// </summary>
110+
[Test]
111+
public void LocalityTest()
112+
{
113+
// TODO unit test for the property 'Locality'
114+
}
115+
/// <summary>
116+
/// Test the property 'AdministrativeArea'
117+
/// </summary>
118+
[Test]
119+
public void AdministrativeAreaTest()
120+
{
121+
// TODO unit test for the property 'AdministrativeArea'
122+
}
123+
/// <summary>
124+
/// Test the property 'PostalCode'
125+
/// </summary>
126+
[Test]
127+
public void PostalCodeTest()
128+
{
129+
// TODO unit test for the property 'PostalCode'
130+
}
131+
/// <summary>
132+
/// Test the property 'Country'
133+
/// </summary>
134+
[Test]
135+
public void CountryTest()
136+
{
137+
// TODO unit test for the property 'Country'
138+
}
139+
/// <summary>
140+
/// Test the property 'Email'
141+
/// </summary>
142+
[Test]
143+
public void EmailTest()
144+
{
145+
// TODO unit test for the property 'Email'
146+
}
147+
/// <summary>
148+
/// Test the property 'VerificationStatus'
149+
/// </summary>
150+
[Test]
151+
public void VerificationStatusTest()
152+
{
153+
// TODO unit test for the property 'VerificationStatus'
154+
}
155+
156+
}
157+
158+
}

0 commit comments

Comments
 (0)