-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bbe8c44
commit 398c6b1
Showing
7 changed files
with
81 additions
and
3 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
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 |
---|---|---|
|
@@ -65,6 +65,19 @@ public async Task ReturnsDistinctInfosBasedOnStartPage() | |
} | ||
} | ||
|
||
public class TheGetMethod | ||
{ | ||
[IntegrationTest] | ||
public async Task CanRetrievePerson() | ||
{ | ||
var pipedrive = Helper.GetAuthenticatedClient(); | ||
|
||
var person = await pipedrive.Person.Get(141); | ||
|
||
Assert.Equal("[email protected]", person.Email[0].Value); | ||
} | ||
} | ||
|
||
public class TheGetByNameMethod | ||
{ | ||
[IntegrationTest] | ||
|
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,33 @@ | ||
using Newtonsoft.Json; | ||
using System; | ||
|
||
namespace Pipedrive | ||
{ | ||
public class Picture | ||
{ | ||
[JsonProperty("item_type")] | ||
public string ItemType { get; set;} | ||
|
||
[JsonProperty("item_id")] | ||
public long ItemId { get; set; } | ||
|
||
[JsonProperty("active_flag")] | ||
public bool ActiveFlag { get; set; } | ||
|
||
[JsonProperty("add_time")] | ||
public DateTime AddTime { get; set; } | ||
|
||
[JsonProperty("update_time")] | ||
[JsonConverter(typeof(ZeroDateConverter))] | ||
public DateTime? UpdateTime { get; set; } | ||
|
||
[JsonProperty("added_by_user_id")] | ||
public long AddedByUserId { get; set; } | ||
|
||
[JsonProperty("pictures")] | ||
public object Pictures { get; set; } | ||
|
||
[JsonProperty("value")] | ||
public long Value { get; set; } | ||
} | ||
} |
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,19 @@ | ||
using Newtonsoft.Json; | ||
|
||
namespace Pipedrive | ||
{ | ||
public class SimplePicture | ||
{ | ||
[JsonProperty("id")] | ||
public long Id { get; set; } | ||
|
||
[JsonProperty("url")] | ||
public string Url { get; set; } | ||
|
||
[JsonProperty("width")] | ||
public int Width { get; set; } | ||
|
||
[JsonProperty("height")] | ||
public int Height { get; set; } | ||
} | ||
} |
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