public void SetUp() { _service = new Mock <IPeripheralService>(); _resultFactory = new Mock <IStatusCodeResultFactory>(); _controller = new PeripheralController(_service.Object, _resultFactory.Object); }
public PeripheralControllerTests() { var config = new MapperConfiguration(opt => { opt.AddProfile(typeof(DtoToModelProfile)); opt.AddProfile(typeof(ModelToDtoProfile)); }); this.mapper = config.CreateMapper(); this.repoWrapper = new MockRepositoryWrapper(); this.controller = new PeripheralController(repoWrapper, mapper); }