Ejemplo n.º 1
0
        public async Task By_default_execution_method_convert_task_cancellation_exception_to_activity_cancel_response()
        {
            var activity = new CancelledActivity();

            var response = await activity.ExecuteAsync(_activityArgs);

            Assert.That(response, Is.EqualTo(new ActivityCancelResponse(_taskToken, "The operation was canceled.")));
        }
Ejemplo n.º 2
0
        public async Task By_default_execution_method_convert_task_cancellation_exception_to_activity_cancel_response()
        {
            var activity = new CancelledActivity();

            var response = await activity.ExecuteAsync(_activityArgs);

            Assert.That(response, Is.EqualTo(new ActivityCancelledResponse("Activity name: CancelledActivity and version: 1.0 is cancelled.")));
        }