I have a class that takes in a db factory.
public class ArticleManager
{
private IDAOFactor _factory;
public ArticleManager(IDAOFactory factory)
{
this._factory = factory;
}
}
Using moq, how do I create an instance of ArticleManager?
I tried:
var mockFactory = new Mock<IDAOFactory>();
ArticleManager am = new ArticleManager(mockFactory);
But that isn't compiling.