コード例 #1
0
        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);
        }
コード例 #2
0
 public DemoEmployeeController(IEmployeeLookup _employeeLookup, IMapper _mapper)
 {
     this.employeeLookup = _employeeLookup;
     this.mapper         = _mapper;
 }