public EmployeesControllerTests() { var myProfile = new MapperProfile(); var configuration = new MapperConfiguration(cfg => cfg.AddProfile(myProfile)); var mapper = new Mapper(configuration); setUpDb(); _mockUOW = new Mock <UnitOfWork>(_mockContext.Object); _mockBus = new EmployeeLookup(_mockUOW.Object); // _controller = new DemoEmployeeController(_mockBus,mapper); }
public DemoEmployeeController(IEmployeeLookup _employeeLookup, IMapper _mapper) { this.employeeLookup = _employeeLookup; this.mapper = _mapper; }