public void AddTwoEmp() { // arrange Employee employee1 = SetEmployee(1, "Sumet", "Funan", 25); Employee employee2 = SetEmployee(2, "Hello", "World", 28); // act DAEmployee daEmployee = new DAEmployee(); daEmployee.Add(employee1); daEmployee.Add(employee2); // assert var result = daEmployee.GetAll().ToList(); Assert.AreEqual(2, result.Count); AssertEmployee(1, "Sumet", "Funan", 25, result[0]); AssertEmployee(2, "Hello", "World", 28, result[1]); }
public void Add(Employee employee) { _daEmployee.Add(employee); }