Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

6
  • You could use Reflection and generate a stub mock class. Commented Aug 4, 2020 at 10:34
  • We don't generally give advice on frameworks here. There are a number of decent ones for the .net platform. A good way to discover them is to use nuget and search for the word mock. This will find you a number of such libraries, and give you an indication of how well used they are. Commented Aug 4, 2020 at 12:05
  • 1
    @Kain0_0: There's a difference between OP asking for a framework suggestion and OP asking a question which could be solved easier using a certain framework. The latter is on topic. Commented Aug 4, 2020 at 12:06
  • 1
    Just to be clear about my earlier comment: OP is indeed asking for a framework, but also for a DIY solution. The question is valid, but it should maybe omit the specific request for a framework - or at least not put it first and foremost as it's going to (IMHO wrongly) draw close votes for appearing to ask an off-topic question. Commented Aug 4, 2020 at 12:16
  • I'e made my question more specificity toward which approach i should take. Commented Aug 4, 2020 at 12:18