public void SetUp()
        {
            _model = new EmployeeModel();

            _mocker = new AutoMoqer();

            _mocker.GetMock<IGetEmployeesListQuery>()
                .Setup(p => p.Execute())
                .Returns(new List<EmployeeModel> { _model });

            _controller = _mocker.Create<EmployeesController>();
        }
Example #2
0
        public void SetUp()
        {
            _model = new EmployeeModel();

            _mocker = new AutoMoqer();

            _mocker.GetMock <IGetEmployeesListQuery>()
            .Setup(p => p.Execute())
            .Returns(new List <EmployeeModel> {
                _model
            });

            _controller = _mocker.Create <EmployeesController>();
        }