public void GetEmployees() { IMapper <Application.Employee, Employee> employeeMapper = CreateEmployeeMapperMock(); var appEmployee = new Application.Employee(Guid.NewGuid(), "lastName", "firstName", "title", null, false); var apiEmployee = new Employee(); employeeMapper.Map(appEmployee).Returns(apiEmployee); repository.GetActiveEmployees().Returns(new List <Application.Employee> { appEmployee }); var result = sut.GetEmployees() as OkNegotiatedContentResult <IEnumerable <Employee> >; Assert.IsNotNull(result); Assert.AreSame(apiEmployee, result.Content.Single()); }