-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #120 from Intacct/v2.3.0
Fix issues, Add missing fields and new function
- Loading branch information
Showing
23 changed files
with
400 additions
and
216 deletions.
There are no files selected for viewing
45 changes: 45 additions & 0 deletions
45
Intacct.SDK.Tests/Functions/AccountsPayable/ApPaymentRequestDeclineTest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
/* | ||
* Copyright 2020 Sage Intacct, Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"). You may not | ||
* use this file except in compliance with the License. You may obtain a copy | ||
* of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* or in the "LICENSE" file accompanying this file. This file is distributed on | ||
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either | ||
* express or implied. See the License for the specific language governing | ||
* permissions and limitations under the License. | ||
*/ | ||
|
||
using Intacct.SDK.Functions.AccountsPayable; | ||
using Intacct.SDK.Tests.Xml; | ||
using Xunit; | ||
|
||
namespace Intacct.SDK.Tests.Functions.AccountsPayable | ||
{ | ||
public class ApPaymentRequestDeclineTest : XmlObjectTestHelper | ||
{ | ||
[Fact] | ||
public void GetXmlTest() | ||
{ | ||
string expected = @"<?xml version=""1.0"" encoding=""utf-8""?> | ||
<function controlid=""unittest""> | ||
<decline_appaymentrequest> | ||
<appaymentkeys> | ||
<appaymentkey>1234</appaymentkey> | ||
</appaymentkeys> | ||
</decline_appaymentrequest> | ||
</function>"; | ||
|
||
ApPaymentRequestDecline record = new ApPaymentRequestDecline("unittest") | ||
{ | ||
RecordNo = 1234 | ||
}; | ||
|
||
this.CompareXml(expected, record); | ||
} | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.