public InstrumentsTest() { //Arrange controller = new InstrumentsController(new InMemoryInstrumentsAgent()); //must set explicitly for tests to work controller.ObjectValidator = new InMemoryModelValidator(); }
public InstrumentsControllerTests() { _instrumentServiceMock = new Mock <IInstrumentService>(); _instrumentsController = new InstrumentsController(_instrumentServiceMock.Object); }