public void TestInitialize() { Queue <string> queue = new Queue <string>(new string[] { "first" }); GithubContext context = new GithubContext(queue); commentsApi = new CommentsApi(context); }
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)); }); }
public void Init() { client = new ApiClient(subdomain, clientId, clientSecret: clientSecret); instance = client.Comments; }