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

            GithubContext context = new GithubContext(queue);

            commentsApi = new CommentsApi(context);
        }
Beispiel #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));
            });
        }
Beispiel #3
0
 public void Init()
 {
     client   = new ApiClient(subdomain, clientId, clientSecret: clientSecret);
     instance = client.Comments;
 }