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

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,10 @@ public partial class auDeleteType : auDetailsType {

/// <remarks/>
public creditCardMaskedType creditCard;
//Declared subscriptionIdsList for auDeleteType
/// <remarks/>
[System.Xml.Serialization.XmlArrayItemAttribute("subscriptionId", IsNullable = false)]
public string[] subscriptionIdList;
}

/// <remarks/>
Expand Down Expand Up @@ -225,6 +229,10 @@ public partial class auUpdateType : auDetailsType {

/// <remarks/>
public creditCardMaskedType oldCreditCard;
//Declared subscriptionIdsList for auUpdateType
/// <remarks/>
[System.Xml.Serialization.XmlArrayItemAttribute("subscriptionId", IsNullable = false)]
public string[] subscriptionIdList;
}

/// <remarks/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,21 @@ public void MockgetAUJobDetailsTest()
{
merchantAuthentication = new merchantAuthenticationType() {name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey},
};
var audetailsType = new auDetailsType[]
{
new auDetailsType
{
customerPaymentProfileID= 1000040162,
customerProfileID= 40202794,
auReasonCode="NAN"
}
};
var mockResponse = new getAUJobDetailsResponse
{
refId = "1234",
sessionToken = "sessiontoken",
Yyyyy = Yyyy,
};
refId = "1234",
sessionToken = "sessiontoken",
auDetails = audetailsType,
};

var errorResponse = new ANetApiResponse();
var results = new List<String>();
Expand All @@ -64,8 +73,8 @@ public void MockgetAUJobDetailsTest()
var controllerResponse = mockController.MockObject.GetApiResponse();
Assert.IsNotNull(controllerResponse);

Assert.IsNotNull(controllerResponse.Yyyyy);
LogHelper.info(Logger, "getAUJobDetails: Details:{0}", controllerResponse.Yyyyy);
Assert.IsNotNull(controllerResponse.auDetails);
LogHelper.info(Logger, "getAUJobDetails: Details:{0}", controllerResponse.auDetails);
}
}
}
1 change: 1 addition & 0 deletions AuthorizeNETtest/AuthorizeNETtest.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@
<ItemGroup>
<Compile Include="*.cs" />
<Compile Include="Api\Controllers\MockTest\ARBGetSubscriptionControllerTest.cs" />
<Compile Include="Api\Controllers\MockTest\getAUJobDetailsControllerTest.cs" />
<Compile Include="Api\Controllers\MockTest\getCustomerPaymentProfileListControllerTest.cs" />
<Compile Include="Api\Controllers\MockTest\getHostedPaymentPageControllerTest.cs" />
<Compile Include="Api\Controllers\MockTest\getMerchantDetailsControllerTest.cs" />
Expand Down