insightly-api
Diff Revisions
8
vs
9
for /trunk/UnitTestInsightly/ContactGetTest.cs
|
@@ -87,6 +87,21 @@ |
87 |
87 |
|
} |
88 |
88 |
|
|
89 |
89 |
|
/// <summary> |
|
90 |
+ |
/// Test returns empty list if no matching contacts. |
|
91 |
+ |
/// </summary> |
|
92 |
+ |
[TestMethod] |
|
93 |
+ |
public void ReturnForNonExistentEmailAddress() |
|
94 |
+ |
{ |
|
95 |
+ |
const string contactEmail = "abcde@123.net"; |
|
96 |
+ |
InsightlyAPI api = new InsightlyAPI(APIUser.PLAIN_API_KEY); |
|
97 |
+ |
|
|
98 |
+ |
var contacts = api.GetContactsForEmail(contactEmail); |
|
99 |
+ |
|
|
100 |
+ |
Assert.IsNotNull(contacts); |
|
101 |
+ |
Assert.IsTrue(contacts.Count == 0); |
|
102 |
+ |
} |
|
103 |
+ |
|
|
104 |
+ |
/// <summary> |
90 |
105 |
|
/// Test returns the postal address for john smith. |
91 |
106 |
|
/// </summary> |
92 |
107 |
|
[TestMethod] |