public void SetterUp()
        {
            _employeeQueries = MockRepository.GenerateStub<IEmployeeQueries>();
            _employeeToReturn = new NewEmployeeResponse();
            _employeeQueries.Stub(f => f.Find(42)).Return(_employeeToReturn);
            _controller = new EmployeesController(null, _employeeQueries);

            Helpers.SetupController(_controller);
        }
        public void GivesTheNewEmployeeToTheEmployeeCommandService()
        {
            // arrange - GIVEN
            var employeeToAdd = new NewEmployee() { FirstName = "Boba", LastName = "Fett", Salary = 180000 };
            var employeeToReturn = new NewEmployeeResponse();

            var fakeEmployeeCommands = MockRepository.GenerateStub<IEmployeeCommands>();
            fakeEmployeeCommands.Stub(f => f.Add(employeeToAdd)).Return(employeeToReturn);

            var controller = new EmployeesController(fakeEmployeeCommands,null);
            Helpers.SetupController(controller);
            // act - WHEN
            var response = controller.Post(employeeToAdd);

            // assert - THEN
            var result = response.Content.ReadAsAsync<NewEmployeeResponse>().Result;

            Assert.AreSame(result, employeeToReturn);
        }