-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
address comments and add new factory to the tests
- Loading branch information
Showing
7 changed files
with
45 additions
and
32 deletions.
There are no files selected for viewing
3 changes: 1 addition & 2 deletions
3
....Client/Models/CursorPaginatedIterator.cs → ...ent/Pagination/CursorPaginatedIterator.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
2 changes: 0 additions & 2 deletions
2
src/ZendeskApi.Client/Pagination/CursorPaginatedIteratorFactory.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
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
21 changes: 21 additions & 0 deletions
21
test/ZendeskApi.Client.IntegrationTests/Factories/CursorPaginatedIteratorFactory.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,21 @@ | ||
using System; | ||
using ZendeskApi.Client.Pagination; | ||
using ZendeskApi.Client.Responses; | ||
|
||
namespace ZendeskApi.Client.IntegrationTests.Factories | ||
{ | ||
public class CursorPaginatedIteratorFactory | ||
{ | ||
private readonly ZendeskClientFactory zendeskClientFactory; | ||
public CursorPaginatedIteratorFactory(ZendeskClientFactory _zendeskClientFactory) | ||
{ | ||
zendeskClientFactory = _zendeskClientFactory; | ||
} | ||
|
||
public CursorPaginatedIterator<T> Create<T>(ICursorPagination<T> response) | ||
{ | ||
return new CursorPaginatedIterator<T>(response, zendeskClientFactory.GetApiClient()); | ||
} | ||
} | ||
} | ||
|
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