ASP.Net MVC Moq SetupGet

Posted by Nicholas Murray on Stack Overflow See other posts from Stack Overflow or by Nicholas Murray
Published on 2011-01-03T20:59:56Z Indexed on 2011/01/04 9:53 UTC
Read the original article Hit count: 266

Filed under:
|
|

Hi, I am starting out with TDD using Moq to Mock an interface that I have:

public interface IDataService
{
    void Commit();
    TopListService TopLists { get; }
}

From the samples I have seen I would expect SetupGet (or Setup) to appear in the intellisense when I type

        var mockDataService = new Mock<IDataService>();

        mockDataService.

But it is missing. Could someone suggest why?

© Stack Overflow or respective owner

Related posts about asp.net-mvc

Related posts about TDD