Skip to content
This repository has been archived by the owner on Jun 16, 2024. It is now read-only.

How to pass in Default Code Activity Context? #69

Closed
krishire opened this issue Jun 7, 2016 · 1 comment
Closed

How to pass in Default Code Activity Context? #69

krishire opened this issue Jun 7, 2016 · 1 comment

Comments

@krishire
Copy link

krishire commented Jun 7, 2016

I'm struggling to pass a default Code Activity Context from my unit test case method.
Please help me with an example of how to pass a mocked Code Activty context while making an ExecuteCodeActivity(PrimaryEntity, inputs) call.
In my code activity, I'm trying to get the context.IntitiatingUserId, which is failing with null object exception.

@jordimontana82
Copy link
Owner

Hi @krishire

There is a new version in Nuget where you can pass a custom workflow context now

XrmFakedWorkflowContext

In a similar way as you did with plugins.

Cheers,

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants