I'm trying to test my controllers, but each of them have a dependency on a service which has a dependency on a repository. I have the following code...
Mock.Get(controller.Get<ServiceInterface>())
.Setup(s => s.GetData())
.Returns(FakeData.Create<Entity>(25));
I keep getting an error related to the ServiceInterface concrete class not having a default instance for its repository (injected). I'm trying to avoid creating a FakeService, but its looking like that's what I'm going to have to do. Can anyone offer some suggestions?