public async Task RemoteActivity_Execute_Success() { var remoteActivity = new RemoteActivity("remote.activity.{activity01}"); var activityExecutionResult = await remoteActivity.Execute(_activityExecutionContext, new CancellationToken()); Assert.IsTrue(activityExecutionResult.Status == ActivityExecutionStatus.Completed); }
public async Task RemoteActivity_Execute_ActivityInitial() { _activityResponseWorkflowMessage = new ActivityResponseWorkflowMessage { ActivityExecutionResult = new ActivityExecutionResult(ActivityExecutionStatus.Failed) }; var remoteActivity = new RemoteActivity("remote.activity.{activity01}"); var activityExecutionResult = await remoteActivity.Execute(_activityExecutionContext, new CancellationToken()); Assert.IsTrue(activityExecutionResult.Status == ActivityExecutionStatus.Failed); }