public MunroControllerTest() { var dataContext = new MunroDataContext(); var service = new MunroService(dataContext, MockAutoMapper.CreateMockMapper()); controller = new MunrosController(service); }
public MunrosControllerShould() { // Would normally mock here but no need in this instance. repository = new MunroRepository(); // Set up controller controller = new MunrosController(repository); // Set up basic query dto query = new MunroQueryDto(); }