protected void SetupMockResponseForWorkflowContext(WorkflowExecutionContext context)
        {
            if (context == null)
            {
                throw new ArgumentNullException(nameof(context));
            }

            WorkflowContext.Stub(x => x.BusinessUnitId).Return(context.BusinessUnitId);
            WorkflowContext.Stub(x => x.CorrelationId).Return(context.CorrelationId);
            WorkflowContext.Stub(x => x.Depth).Return(context.Depth);
            WorkflowContext.Stub(x => x.InitiatingUserId).Return(context.InitiatingUserId);
            WorkflowContext.Stub(x => x.InputParameters).Return(context.InputParameters);
            WorkflowContext.Stub(x => x.IsExecutingOffline).Return(context.IsExecutingOffline);
            WorkflowContext.Stub(x => x.IsInTransaction).Return(context.IsInTransaction);
            WorkflowContext.Stub(x => x.IsOfflinePlayback).Return(context.IsOfflinePlayback);
            WorkflowContext.Stub(x => x.IsolationMode).Return(context.IsolationMode);
            WorkflowContext.Stub(x => x.MessageName).Return(context.MessageName);
            WorkflowContext.Stub(x => x.Mode).Return(context.Mode);
            WorkflowContext.Stub(x => x.OperationCreatedOn).Return(context.OperationCreatedOn);
            WorkflowContext.Stub(x => x.OperationId).Return(context.OperationId);
            WorkflowContext.Stub(x => x.OrganizationId).Return(context.OrganizationId);
            WorkflowContext.Stub(x => x.OrganizationName).Return(context.OrganizationName);
            WorkflowContext.Stub(x => x.OutputParameters).Return(context.OutputParameters);
            WorkflowContext.Stub(x => x.OwningExtension).Return(context.OwningExtension);
            WorkflowContext.Stub(x => x.ParentContext).Return(context.ParentContext);
            WorkflowContext.Stub(x => x.PostEntityImages).Return(context.PostEntityImages);
            WorkflowContext.Stub(x => x.PreEntityImages).Return(context.PreEntityImages);
            WorkflowContext.Stub(x => x.PrimaryEntityId).Return(context.PrimaryEntityId);
            WorkflowContext.Stub(x => x.PrimaryEntityName).Return(context.PrimaryEntityName);
            WorkflowContext.Stub(x => x.RequestId).Return(context.RequestId);
            WorkflowContext.Stub(x => x.SecondaryEntityName).Return(context.SecondaryEntityName);
            WorkflowContext.Stub(x => x.SharedVariables).Return(context.SharedVariables);
            WorkflowContext.Stub(x => x.StageName).Return(context.StageName);
            WorkflowContext.Stub(x => x.UserId).Return(context.UserId);
            WorkflowContext.Stub(x => x.WorkflowCategory).Return(context.WorkflowCategory);
            WorkflowContext.Stub(x => x.WorkflowMode).Return(context.WorkflowMode);
        }