AutoFixture: Unable to create an instance, probably no public constructor
问题 I seem to be having an issue, I have a class (LoginService) that accepts in the constructor an IUser. This is for performing integration tests rather than unit tests, for that reason I don't want to MOCK these, I have some Unit Tests already and they are working great using Moq with fixture. I setup my fixture:- var fixture = new Fixture(); And then I want to be able to freeze a version of the IUser, I have tried the following but I couldn't get it to work, it complains that it can't create