public async Task shouldSendRequestAsExpected() { // given var expectedRequest = new UpdateWorkflowInstancePayloadRequest { ElementInstanceKey = 2123, Payload = "{\"foo\":\"bar\"}" }; // when await ZeebeClient.NewUpdatePayloadCommand(2123).Payload("{\"foo\":\"bar\"}").Send(); // then var request = TestService.Requests[0]; Assert.AreEqual(expectedRequest, request); }