public void SetUp() { employee = new Employee(123, "Jean", "10 Rue de Roi"); operation = new LoadEmployeeOperation(123, null); operation.Employee = employee; }
public void LoadingEmployeeDataCommand() { operation = new LoadEmployeeOperation(123, null); SqlCommand command = operation.Command; Assert.AreEqual("select * from Employee where EmpId = @EmpId", command.CommandText); Assert.AreEqual(123, command.Parameters["@EmpId"].Value); }