-
-
Notifications
You must be signed in to change notification settings - Fork 225
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add cancellation token support #23
Conversation
@@ -44,5 +46,25 @@ public async Task CreatesANewAuthor() | |||
Assert.Equal(result.PluralsightUrl, newAuthor.PluralsightUrl); | |||
Assert.Equal(result.TwitterAlias, newAuthor.TwitterAlias); | |||
} | |||
|
|||
[Fact] | |||
public async Task GivenLongRunningCreateRequest_WhenTokenSourceCallsForCancellation_RequestIsTermainated() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
public async Task GivenLongRunningCreateRequest_WhenTokenSourceCallsForCancellation_RequestIsTermainated() | |
public async Task GivenLongRunningCreateRequest_WhenTokenSourceCallsForCancellation_RequestIsTerminated() |
@@ -34,5 +36,19 @@ public async Task ReturnsAuthorById() | |||
Assert.Equal(firstAuthor.PluralsightUrl, result.PluralsightUrl); | |||
Assert.Equal(firstAuthor.TwitterAlias, result.TwitterAlias); | |||
} | |||
|
|||
[Fact] | |||
public async Task GivenLongRunningGetRequest_WhenTokenSourceCallsForCancellation_RequestIsTermainated() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
public async Task GivenLongRunningGetRequest_WhenTokenSourceCallsForCancellation_RequestIsTermainated() | |
public async Task GivenLongRunningGetRequest_WhenTokenSourceCallsForCancellation_RequestIsTerminated() |
@@ -30,5 +32,18 @@ public async Task ReturnsTwoGivenTwoAuthors() | |||
Assert.NotNull(result); | |||
Assert.Equal(SeedData.Authors().Count(), result.Count()); | |||
} | |||
|
|||
[Fact] | |||
public async Task GivenLongRunningListRequest_WhenTokenSourceCallsForCancellation_RequestIsTermainated() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
public async Task GivenLongRunningListRequest_WhenTokenSourceCallsForCancellation_RequestIsTermainated() | |
public async Task GivenLongRunningListRequest_WhenTokenSourceCallsForCancellation_RequestIsTerminated() |
} | ||
|
||
[Fact] | ||
public async Task GivenLongRunningPaginatedListRequest_WhenTokenSourceCallsForCancellation_RequestIsTermainated() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
public async Task GivenLongRunningPaginatedListRequest_WhenTokenSourceCallsForCancellation_RequestIsTermainated() | |
public async Task GivenLongRunningPaginatedListRequest_WhenTokenSourceCallsForCancellation_RequestIsTerminated() |
@@ -44,5 +46,24 @@ public async Task UpdateAnExistingAuthor() | |||
Assert.Equal(result.PluralsightUrl, authorPreUpdate.PluralsightUrl); | |||
Assert.Equal(result.TwitterAlias, authorPreUpdate.TwitterAlias); | |||
} | |||
|
|||
[Fact] | |||
public async Task GivenLongRunningUpdateRequest_WhenTokenSourceCallsForCancellation_RequestIsTermainated() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
public async Task GivenLongRunningUpdateRequest_WhenTokenSourceCallsForCancellation_RequestIsTermainated() | |
public async Task GivenLongRunningUpdateRequest_WhenTokenSourceCallsForCancellation_RequestIsTerminated() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix typos then looks good.
Good catch, updated with latest commit. |
Addresses issue #20, with accompanying updates to the sample project and additional unit tests.