public PermitTest() { //Arrange controller = new PermitsController(new InMemoryAgent()); //must set explicitly for tests to work controller.ObjectValidator = new InMemoryModelValidator(); }
public PermitTest() { this.mockPermitRepo = new Mock <IPermitRepo>(); this.mockLotRepo = new Mock <ILotRepo>(); this.mockLotStatusRepo = new Mock <ILotStatusRepo>(); this.mockApplicationUserRepo = new Mock <IApplicationUserRepo>(); controller = new PermitsController(mockPermitRepo.Object, mockLotRepo.Object, mockLotStatusRepo.Object, mockApplicationUserRepo.Object); }