public async Task Activity_can_return_fail_response() { var activity = new ActivityReturningFailResponse("details", "reason"); var response = await activity.ExecuteAsync(_activityArgs); Assert.That(response, Is.EqualTo(new ActivityFailResponse(_taskToken, "reason", "details"))); }
public async Task Activity_can_return_fail_response() { var activity = new ActivityReturningFailResponse(new{ detail = "detail" }, "reason"); var response = await activity.ExecuteAsync(_activityArgs); Assert.That(response, Is.EqualTo(new ActivityFailedResponse("reason", new { detail = "detail" }))); }