Open gharizanov opened 9 years ago
As a work around you can do something like this:
var _countryFactory = new Mock<ICountryFactory>();
_countryFactory
.Setup(f => f.CreateCountry(It.IsAny<string>()))
.Returns( CountryFactory.CreateCountry("CH") );
Not sure if this actually helps so I'm curious to understand what is the use case?
I’m trying to mock ICountryFactory but with no luck. Here is the code:
And then I get these errors: