mirror of
https://github.com/zoriya/octokit.net.git
synced 2025-12-05 23:06:10 +00:00
* Run `build -Target FormatCode` to fixup whitespace etc * Fix delete release asset integration test * Fix repository fork test * Fix pagination test for PR Review Request * First cut of release notes * update release notes * Update release notes * include links to contributors * Add breaking changes/advisories section * Tidy up formatting * Tidy up wording
43 lines
1.2 KiB
C#
43 lines
1.2 KiB
C#
using System.Reactive.Linq;
|
|
using System.Threading.Tasks;
|
|
using Octokit.Reactive;
|
|
using Octokit.Tests.Integration;
|
|
using Xunit;
|
|
|
|
public class ObservableNotificationsClientTests
|
|
{
|
|
public class TheMarkAsReadMethod
|
|
{
|
|
[IntegrationTest]
|
|
public async Task MarksNotificationsRead()
|
|
{
|
|
var client = new ObservableGitHubClient(Helper.GetAuthenticatedClient());
|
|
|
|
await client.Activity.Notifications.MarkAsRead();
|
|
}
|
|
}
|
|
|
|
public class TheMarkAsReadForRepositoryMethod
|
|
{
|
|
[IntegrationTest]
|
|
public async Task MarksNotificationsRead()
|
|
{
|
|
var owner = "octokit";
|
|
var repo = "octokit.net";
|
|
|
|
var client = new ObservableGitHubClient(Helper.GetAuthenticatedClient());
|
|
|
|
await client.Activity.Notifications.MarkAsReadForRepository(owner, repo);
|
|
}
|
|
|
|
[IntegrationTest]
|
|
public async Task MarksNotificationsReadForRepositoryId()
|
|
{
|
|
var repositoryId = 7528679;
|
|
|
|
var client = new ObservableGitHubClient(Helper.GetAuthenticatedClient());
|
|
|
|
await client.Activity.Notifications.MarkAsReadForRepository(repositoryId);
|
|
}
|
|
}
|
|
} |