public void TestInitialize()
        {
            Queue <string> queue = new Queue <string>(new string[] { "first" });

            GithubContext context = new GithubContext(queue);

            commentsApi = new CommentsApi(context);
        }
Exemple #2
0
        async Task LeaveCommentUnauthorized()
        {
            var api = new CommentsApi(TestConfig.BaseUrl);

            await Assert.ThrowsAnyAsync <Exception>(async() =>
            {
                var res = await api.CreateCommentAsyncWithHttpInfo(
                    new CreateCommentModel("123", "title", "TEXTTEXTTEXTTEXTTEXTTEXTTEXTTEXT", 5));
            });
        }
Exemple #3
0
 public void Init()
 {
     client   = new ApiClient(subdomain, clientId, clientSecret: clientSecret);
     instance = client.Comments;
 }