public async Task SendRequestTest() { var storage = new MemoryStorage(); var mockClient = new WeChatWorkClient(settings, storage); await mockClient.SendHttpRequestAsync(HttpMethod.Get, "https://dev.botframework.com"); await mockClient.SendHttpRequestAsync(HttpMethod.Get, "https://dev.botframework.com", "mockdata", "testToken"); }
public async Task SendRequestTimeoutTest() { var storage = new MemoryStorage(); var mockClient = new WeChatWorkClient(settings, storage); await mockClient.SendHttpRequestAsync(HttpMethod.Get, "https://dev.botframework.com", timeout : 1000); Thread.Sleep(1500); }
public async Task ClientDisposeTest() { var storage = new MemoryStorage(); var mockClient = new WeChatWorkClient(settings, storage); await mockClient.SendHttpRequestAsync(HttpMethod.Get, "https://dev.botframework.com"); mockClient.Dispose(); }