Stack Overflow Asked by Mathiyazhagan on December 1, 2021
I wanted to mock the System.Activities.NativeActivityContext & System.Activities.ActivityContext for my unit test.
i.e.
using Moq;
using Autofac.Extras.Moq;
var executionContext = new Mock<NativeActivityContext>();
Since this class does not have zero parameter constructor, I’m unable to mock, neither not able to create object for this.
Note: Looks Like there is no constructor defined in this class
Can anyone help me how to mock or create object of this classes?
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP