0

I'm trying to create MSTest method for .NET Core application. Inside the test method I'm trying to call .net core controller's parameterized constructor. The constructor has mediatr parameter. How do I pass value for the mediatr from MSTest method to .NET Core constructor?

  • Does this question help? [Mocking MediatR 3 with Moq](https://stackoverflow.com/questions/43249816/mocking-mediatr-3-with-moq) – sbridewell Mar 23 '22 at 07:31

1 Answers1

0

var mediator = new Mediator(Mock.Of());

Chiraag D
  • 1
  • 1