Skip to content

Commit b28f2fc

Browse files
committed
june spec changes
1 parent f65634e commit b28f2fc

25 files changed

+816
-361
lines changed

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,7 @@ public void ActivatePlanTest()
7272
{
7373
// TODO uncomment below to test the method and replace null with proper value
7474
//string id = null;
75-
//Object activatePlanRequest = null;
76-
//var response = instance.ActivatePlan(id, activatePlanRequest);
75+
//var response = instance.ActivatePlan(id);
7776
//Assert.IsInstanceOf<InlineResponse2004> (response, "response is InlineResponse2004");
7877
}
7978

@@ -97,8 +96,7 @@ public void DeactivatePlanTest()
9796
{
9897
// TODO uncomment below to test the method and replace null with proper value
9998
//string id = null;
100-
//Object deactivatePlanRequest = null;
101-
//var response = instance.DeactivatePlan(id, deactivatePlanRequest);
99+
//var response = instance.DeactivatePlan(id);
102100
//Assert.IsInstanceOf<InlineResponse2004> (response, "response is InlineResponse2004");
103101
}
104102

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

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,7 @@ public void ActivateSubscriptionTest()
7272
{
7373
// TODO uncomment below to test the method and replace null with proper value
7474
//string id = null;
75-
//Object activateSubscriptionRequest = null;
76-
//var response = instance.ActivateSubscription(id, activateSubscriptionRequest);
75+
//var response = instance.ActivateSubscription(id);
7776
//Assert.IsInstanceOf<InlineResponse2009> (response, "response is InlineResponse2009");
7877
}
7978

@@ -85,8 +84,7 @@ public void CancelSubscriptionTest()
8584
{
8685
// TODO uncomment below to test the method and replace null with proper value
8786
//string id = null;
88-
//Object cancelSubscriptionRequest = null;
89-
//var response = instance.CancelSubscription(id, cancelSubscriptionRequest);
87+
//var response = instance.CancelSubscription(id);
9088
//Assert.IsInstanceOf<InlineResponse202> (response, "response is InlineResponse202");
9189
}
9290

@@ -148,8 +146,7 @@ public void SuspendSubscriptionTest()
148146
{
149147
// TODO uncomment below to test the method and replace null with proper value
150148
//string id = null;
151-
//Object suspendSubscriptionRequest = null;
152-
//var response = instance.SuspendSubscription(id, suspendSubscriptionRequest);
149+
//var response = instance.SuspendSubscription(id);
153150
//Assert.IsInstanceOf<InlineResponse2021> (response, "response is InlineResponse2021");
154151
}
155152

cybersource-rest-client-netstandard/cybersource-rest-client-netstandard.Test/Model/Ptsv2paymentsRecipientInformationTests.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,14 @@ public void PostalCodeTest()
9696
{
9797
// TODO unit test for the property 'PostalCode'
9898
}
99+
/// <summary>
100+
/// Test the property 'DateOfBirth'
101+
/// </summary>
102+
[Test]
103+
public void DateOfBirthTest()
104+
{
105+
// TODO unit test for the property 'DateOfBirth'
106+
}
99107

100108
}
101109

cybersource-rest-client-netstandard/cybersource-rest-client-netstandard.Test/Model/TssV2TransactionsGet200ResponseTests.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,14 @@ public void SubmitTimeUTCTest()
105105
// TODO unit test for the property 'SubmitTimeUTC'
106106
}
107107
/// <summary>
108+
/// Test the property 'Status'
109+
/// </summary>
110+
[Test]
111+
public void StatusTest()
112+
{
113+
// TODO unit test for the property 'Status'
114+
}
115+
/// <summary>
108116
/// Test the property 'ApplicationInformation'
109117
/// </summary>
110118
[Test]

cybersource-rest-client-netstandard/cybersource-rest-client-netstandard.Test/Model/TssV2TransactionsPost201ResponseEmbeddedApplicationInformationApplicationsTests.cs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,22 @@ public void ReasonCodeTest()
8181
// TODO unit test for the property 'ReasonCode'
8282
}
8383
/// <summary>
84+
/// Test the property 'Status'
85+
/// </summary>
86+
[Test]
87+
public void StatusTest()
88+
{
89+
// TODO unit test for the property 'Status'
90+
}
91+
/// <summary>
92+
/// Test the property 'Reason'
93+
/// </summary>
94+
[Test]
95+
public void ReasonTest()
96+
{
97+
// TODO unit test for the property 'Reason'
98+
}
99+
/// <summary>
84100
/// Test the property 'RCode'
85101
/// </summary>
86102
[Test]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
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 TssV2TransactionsPost201ResponseEmbeddedErrorInformation
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 TssV2TransactionsPost201ResponseEmbeddedErrorInformationTests
34+
{
35+
// TODO uncomment below to declare an instance variable for TssV2TransactionsPost201ResponseEmbeddedErrorInformation
36+
//private TssV2TransactionsPost201ResponseEmbeddedErrorInformation 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 TssV2TransactionsPost201ResponseEmbeddedErrorInformation
45+
//instance = new TssV2TransactionsPost201ResponseEmbeddedErrorInformation();
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 TssV2TransactionsPost201ResponseEmbeddedErrorInformation
59+
/// </summary>
60+
[Test]
61+
public void TssV2TransactionsPost201ResponseEmbeddedErrorInformationInstanceTest()
62+
{
63+
// TODO uncomment below to test "IsInstanceOfType" TssV2TransactionsPost201ResponseEmbeddedErrorInformation
64+
//Assert.IsInstanceOfType<TssV2TransactionsPost201ResponseEmbeddedErrorInformation> (instance, "variable 'instance' is a TssV2TransactionsPost201ResponseEmbeddedErrorInformation");
65+
}
66+
67+
/// <summary>
68+
/// Test the property 'Reason'
69+
/// </summary>
70+
[Test]
71+
public void ReasonTest()
72+
{
73+
// TODO unit test for the property 'Reason'
74+
}
75+
76+
}
77+
78+
}

cybersource-rest-client-netstandard/cybersource-rest-client-netstandard.Test/Model/TssV2TransactionsPost201ResponseEmbeddedTransactionSummariesTests.cs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,14 @@ public void MerchantIdTest()
8989
// TODO unit test for the property 'MerchantId'
9090
}
9191
/// <summary>
92+
/// Test the property 'Status'
93+
/// </summary>
94+
[Test]
95+
public void StatusTest()
96+
{
97+
// TODO unit test for the property 'Status'
98+
}
99+
/// <summary>
92100
/// Test the property 'ApplicationInformation'
93101
/// </summary>
94102
[Test]
@@ -129,6 +137,14 @@ public void DeviceInformationTest()
129137
// TODO unit test for the property 'DeviceInformation'
130138
}
131139
/// <summary>
140+
/// Test the property 'ErrorInformation'
141+
/// </summary>
142+
[Test]
143+
public void ErrorInformationTest()
144+
{
145+
// TODO unit test for the property 'ErrorInformation'
146+
}
147+
/// <summary>
132148
/// Test the property 'FraudMarkingInformation'
133149
/// </summary>
134150
[Test]

cybersource-rest-client-netstandard/cybersource-rest-client-netstandard.Test/Model/TssV2TransactionsPost201ResponseTests.cs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -145,14 +145,6 @@ public void TotalCountTest()
145145
// TODO unit test for the property 'TotalCount'
146146
}
147147
/// <summary>
148-
/// Test the property 'Status'
149-
/// </summary>
150-
[Test]
151-
public void StatusTest()
152-
{
153-
// TODO unit test for the property 'Status'
154-
}
155-
/// <summary>
156148
/// Test the property 'SubmitTimeUtc'
157149
/// </summary>
158150
[Test]

0 commit comments

Comments
 (0)