I use the MoqMockingKernelfollowing example from the wiki , but the method is missing Get(). My simplified code:
using Moq;
using Ninject.MockingKernel.Moq;
namespace Store.Web.Tests.Controllers
{
[TestClass]
public class PeopleControllerTests
{
private MoqMockingKernel _mockingKernel;
[TestInitialize]
public void SetUp()
{
_mockingKernel = new MoqMockingKernel();
}
[TestMethod]
public void AddAnotherPersonAddsAnotherPerson()
{
var peopleController = _mockingKernel.Get<PeopleController>();
}
}
}
What am I doing wrong here? It has GetHashCode(), GetMock(), GetModules()and GetType(), but not Get().
source
share