public WaveLabTest()
 {
     //Arrange
     controller = new ProceduresController(new InMemoryWaveLabAgent());
     //must set explicitly for tests to work
     controller.ObjectValidator = new InMemoryModelValidator();
 }
Example #2
0
        public ProceduresControllerTests()
        {
            var fixture = new Fixture();

            _mapper = fixture.Freeze <Mock <IMapper> >();

            _procedureService = fixture.Freeze <Mock <IProcedureService> >();

            _proceduresController = new ProceduresController(_procedureService.Object, _mapper.Object);

            _id = 3;
        }