public bool UpdateEmployee(EmployeeDto updateEmployee)
 {
     var employee = Entities.Employees.Single(x => x.BusinessEntityID == updateEmployee.Id);
     employee.Person.LastName = updateEmployee.LastName;
     employee.Person.FirstName = updateEmployee.FirstName;
     return Entities.SaveChanges()>0;
 }
 public bool UpdateEmployee(EmployeeDto updateEmployee)
 {
     var result = false;
     if(AuthRequests.UserCanUpdateEmployee(User.Id,updateEmployee.Id))
     {
         result = EmployeeRepository.UpdateEmployee(updateEmployee);
     }
     return result;
 }
 public void Setup()
 {
     Target = new EmployeeRepository();
     
     Expected = Target.Entities.vEmployees.First(x=>x.City=="seattle");
     OldFistName = Expected.FirstName;
     OldLastName = Expected.LastName;
     UpdateEmployee = new EmployeeDto
                          {
                              FirstName = "Joe", 
                              LastName = "Bob",
                              Id = Expected.BusinessEntityID
                          };
     Target.UpdateEmployee(UpdateEmployee);
     Actual = Target.Entities.vEmployees.Single(x => x.BusinessEntityID == Expected.BusinessEntityID);
 }