public async Task FailedResponseHandlingTest() { vkAPIMock .SetupSequence(ld => ld.CallLongPollAsync(It.IsAny <string>(), It.IsAny <VkNet.Utils.VkParameters>())) .ReturnsAsync(new VkNet.Utils.VkResponse(testDataLoader.GetJSON("FailedLongpollUpdateResponse"))) .ReturnsAsync(lpInvokeTestResponse); await SingleInvokeTest(); }
public void Setup() { testDataLoader = new TestDataLoader(System.IO.Path.Combine(System.IO.Directory.GetCurrentDirectory(), "TestData")); lpMessageNewEvent = GroupUpdate.FromJson(new VkNet.Utils.VkResponse(testDataLoader.GetJSON("NewMessageUpdate"))); }