-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Order and CustomerSearch (#292)
* Update CustomerSearch Change search parameter Phone1 to Phone * Update Order Add TotalToPay and reorder fields alphabetically * Fix tests Add checksum to OCR numbers
- Loading branch information
1 parent
588b1d4
commit e0b4cab
Showing
9 changed files
with
60 additions
and
39 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -79,6 +79,7 @@ public async Task Test_Find() | |
#endregion Arrange | ||
|
||
var testKeyMark = TestUtils.RandomString(); | ||
var testPhone1 = "111111111"; | ||
|
||
var connector = FortnoxClient.CustomerConnector; | ||
var newCustomer = new Customer() | ||
|
@@ -92,7 +93,8 @@ public async Task Test_Find() | |
Email = "[email protected]", | ||
Type = CustomerType.Private, | ||
Active = false, | ||
Comments = testKeyMark | ||
Comments = testKeyMark, | ||
Phone1 = testPhone1 | ||
}; | ||
|
||
//Add entries | ||
|
@@ -102,7 +104,11 @@ public async Task Test_Find() | |
} | ||
|
||
//Apply base test filter | ||
var searchSettings = new CustomerSearch(); | ||
var searchSettings = new CustomerSearch | ||
{ | ||
City = testKeyMark, | ||
Phone = testPhone1 | ||
}; | ||
searchSettings.City = testKeyMark; | ||
var fullCollection = await connector.FindAsync(searchSettings); | ||
|
||
|
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