public Delete ( long repositoryId, int number ) : IObservable |
||
repositoryId | long | The Id of the repository |
number | int | The pull request review comment number |
Результат | IObservable |
public void PostsToCorrectUrlWithRepositoryId() { var gitHubClient = Substitute.For<IGitHubClient>(); var client = new ObservablePullRequestReviewCommentsClient(gitHubClient); client.Delete(1, 13); gitHubClient.PullRequest.ReviewComment.Received().Delete(1, 13); }
public async Task EnsuresNonNullArguments() { var gitHubClient = Substitute.For<IGitHubClient>(); var client = new ObservablePullRequestReviewCommentsClient(gitHubClient); Assert.Throws<ArgumentNullException>(() => client.Delete(null, "name", 1)); Assert.Throws<ArgumentNullException>(() => client.Delete("owner", null, 1)); Assert.Throws<ArgumentException>(() => client.Delete("", "name", 1)); Assert.Throws<ArgumentException>(() => client.Delete("owner", "", 1)); }
public void PostsToCorrectUrl() { var gitHubClient = Substitute.For<IGitHubClient>(); var client = new ObservablePullRequestReviewCommentsClient(gitHubClient); client.Delete("owner", "name", 13); gitHubClient.PullRequest.ReviewComment.Received().Delete("owner", "name", 13); }