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); }
public void Setup() { target = new EmployeeRepository(); State = "Washington"; City = "Seattle"; }