Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -78,41 +78,41 @@ public void CreateMerchantDefinedFieldDefinitionTest()
}

/// <summary>
/// Test GetMerchantDefinedFieldsDefinitions
/// Test DeleteMerchantDefinedFieldsDefinitions
/// </summary>
[Test]
public void GetMerchantDefinedFieldsDefinitionsTest()
public void DeleteMerchantDefinedFieldsDefinitionsTest()
{
// TODO uncomment below to test the method and replace null with proper value
//string referenceType = null;
//var response = instance.GetMerchantDefinedFieldsDefinitions(referenceType);
//Assert.IsInstanceOf<List<InlineResponse2002>> (response, "response is List<InlineResponse2002>");
//long? id = null;
//instance.DeleteMerchantDefinedFieldsDefinitions(referenceType, id);

}

/// <summary>
/// Test InvoicingV2ReferenceTypeMerchantDefinedFieldsIdDelete
/// Test GetMerchantDefinedFieldsDefinitions
/// </summary>
[Test]
public void InvoicingV2ReferenceTypeMerchantDefinedFieldsIdDeleteTest()
public void GetMerchantDefinedFieldsDefinitionsTest()
{
// TODO uncomment below to test the method and replace null with proper value
//string referenceType = null;
//long? id = null;
//instance.InvoicingV2ReferenceTypeMerchantDefinedFieldsIdDelete(referenceType, id);

//var response = instance.GetMerchantDefinedFieldsDefinitions(referenceType);
//Assert.IsInstanceOf<List<InlineResponse2002>> (response, "response is List<InlineResponse2002>");
}

/// <summary>
/// Test InvoicingV2ReferenceTypeMerchantDefinedFieldsIdPut
/// Test PutMerchantDefinedFieldsDefinitions
/// </summary>
[Test]
public void InvoicingV2ReferenceTypeMerchantDefinedFieldsIdPutTest()
public void PutMerchantDefinedFieldsDefinitionsTest()
{
// TODO uncomment below to test the method and replace null with proper value
//string referenceType = null;
//long? id = null;
//MerchantDefinedFieldCore merchantDefinedFieldCore = null;
//var response = instance.InvoicingV2ReferenceTypeMerchantDefinedFieldsIdPut(referenceType, id, merchantDefinedFieldCore);
//var response = instance.PutMerchantDefinedFieldsDefinitions(referenceType, id, merchantDefinedFieldCore);
//Assert.IsInstanceOf<List<InlineResponse2002>> (response, "response is List<InlineResponse2002>");
}

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
/*
* CyberSource Merged Spec
*
* All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html
*
* OpenAPI spec version: 0.0.1
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/

using System;
using System.IO;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Reflection;
using RestSharp;
using NUnit.Framework;

using CyberSource.Client;
using CyberSource.Api;
using CyberSource.Model;

namespace CyberSource.Test
{
/// <summary>
/// Class for testing OffersApi
/// </summary>
/// <remarks>
/// This file is automatically generated by Swagger Codegen.
/// Please update the test case below to test the API endpoint.
/// </remarks>
[TestFixture]
public class OffersApiTests
{
private OffersApi instance;

/// <summary>
/// Setup before each unit test
/// </summary>
[SetUp]
public void Init()
{
instance = new OffersApi();
}

/// <summary>
/// Clean up after each unit test
/// </summary>
[TearDown]
public void Cleanup()
{

}

/// <summary>
/// Test an instance of OffersApi
/// </summary>
[Test]
public void InstanceTest()
{
// TODO uncomment below to test 'IsInstanceOfType' OffersApi
//Assert.IsInstanceOfType(typeof(OffersApi), instance, "instance is a OffersApi");
}


/// <summary>
/// Test CreateOffer
/// </summary>
[Test]
public void CreateOfferTest()
{
// TODO uncomment below to test the method and replace null with proper value
//string contentType = null;
//string xRequestid = null;
//string vCMerchantId = null;
//string vCCorrelationId = null;
//string vCOrganizationId = null;
//OfferRequest offerRequest = null;
//var response = instance.CreateOffer(contentType, xRequestid, vCMerchantId, vCCorrelationId, vCOrganizationId, offerRequest);
//Assert.IsInstanceOf<InlineResponse2018> (response, "response is InlineResponse2018");
}

/// <summary>
/// Test GetOffer
/// </summary>
[Test]
public void GetOfferTest()
{
// TODO uncomment below to test the method and replace null with proper value
//string contentType = null;
//string xRequestid = null;
//string vCMerchantId = null;
//string vCCorrelationId = null;
//string vCOrganizationId = null;
//string id = null;
//var response = instance.GetOffer(contentType, xRequestid, vCMerchantId, vCCorrelationId, vCOrganizationId, id);
//Assert.IsInstanceOf<InlineResponse20014> (response, "response is InlineResponse20014");
}

}

}
Original file line number Diff line number Diff line change
Expand Up @@ -90,20 +90,6 @@ public void GetTokenizedCardTest()
//Assert.IsInstanceOf<TokenizedcardRequest> (response, "response is TokenizedcardRequest");
}

/// <summary>
/// Test PostIssuerLifeCycleSimulation
/// </summary>
[Test]
public void PostIssuerLifeCycleSimulationTest()
{
// TODO uncomment below to test the method and replace null with proper value
//string profileId = null;
//string tokenizedCardId = null;
//PostIssuerLifeCycleSimulationRequest postIssuerLifeCycleSimulationRequest = null;
//instance.PostIssuerLifeCycleSimulation(profileId, tokenizedCardId, postIssuerLifeCycleSimulationRequest);

}

/// <summary>
/// Test PostTokenizedCard
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,20 +129,28 @@ public void CompleteMandateTest()
// TODO unit test for the property 'CompleteMandate'
}
/// <summary>
/// Test the property 'OrderInformation'
/// Test the property 'TransientTokenResponseOptions'
/// </summary>
[Test]
public void OrderInformationTest()
public void TransientTokenResponseOptionsTest()
{
// TODO unit test for the property 'OrderInformation'
// TODO unit test for the property 'TransientTokenResponseOptions'
}
/// <summary>
/// Test the property 'TransientTokenResponseOptions'
/// Test the property 'Data'
/// </summary>
[Test]
public void TransientTokenResponseOptionsTest()
public void DataTest()
{
// TODO unit test for the property 'TransientTokenResponseOptions'
// TODO unit test for the property 'Data'
}
/// <summary>
/// Test the property 'OrderInformation'
/// </summary>
[Test]
public void OrderInformationTest()
{
// TODO unit test for the property 'OrderInformation'
}

}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
/*
* CyberSource Merged Spec
*
* All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html
*
* OpenAPI spec version: 0.0.1
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/


using NUnit.Framework;

using System;
using System.Linq;
using System.IO;
using System.Collections.Generic;
using CyberSource.Api;
using CyberSource.Model;
using CyberSource.Client;
using System.Reflection;

namespace CyberSource.Test
{
/// <summary>
/// Class for testing InlineResponse20014ClientReferenceInformation
/// </summary>
/// <remarks>
/// This file is automatically generated by Swagger Codegen.
/// Please update the test case below to test the model.
/// </remarks>
[TestFixture]
public class InlineResponse20014ClientReferenceInformationTests
{
// TODO uncomment below to declare an instance variable for InlineResponse20014ClientReferenceInformation
//private InlineResponse20014ClientReferenceInformation instance;

/// <summary>
/// Setup before each test
/// </summary>
[SetUp]
public void Init()
{
// TODO uncomment below to create an instance of InlineResponse20014ClientReferenceInformation
//instance = new InlineResponse20014ClientReferenceInformation();
}

/// <summary>
/// Clean up after each test
/// </summary>
[TearDown]
public void Cleanup()
{

}

/// <summary>
/// Test an instance of InlineResponse20014ClientReferenceInformation
/// </summary>
[Test]
public void InlineResponse20014ClientReferenceInformationInstanceTest()
{
// TODO uncomment below to test "IsInstanceOfType" InlineResponse20014ClientReferenceInformation
//Assert.IsInstanceOfType<InlineResponse20014ClientReferenceInformation> (instance, "variable 'instance' is a InlineResponse20014ClientReferenceInformation");
}

/// <summary>
/// Test the property 'Code'
/// </summary>
[Test]
public void CodeTest()
{
// TODO unit test for the property 'Code'
}
/// <summary>
/// Test the property 'ApplicationName'
/// </summary>
[Test]
public void ApplicationNameTest()
{
// TODO unit test for the property 'ApplicationName'
}
/// <summary>
/// Test the property 'ApplicationVersion'
/// </summary>
[Test]
public void ApplicationVersionTest()
{
// TODO unit test for the property 'ApplicationVersion'
}
/// <summary>
/// Test the property 'ApplicationUser'
/// </summary>
[Test]
public void ApplicationUserTest()
{
// TODO unit test for the property 'ApplicationUser'
}
/// <summary>
/// Test the property 'Partner'
/// </summary>
[Test]
public void PartnerTest()
{
// TODO unit test for the property 'Partner'
}

}

}
Loading