public void TestChangeEmployee() { var employee = new Employee(); employee.UserName = "******"; employee.RealName = "8522"; IEmployeeService employeeService = new EmployeeService(); employeeService.ChangeEmployee(employee); }
/// <summary> /// 创建Employee实体 /// </summary> /// <param name="_UserName">用户名</param> /// <param name="_PassWord">密码</param> /// <param name="_RealName">真实姓名</param> /// <param name="_Sex">性别</param> /// <param name="_Phone">手机号</param> /// <param name="_Tel">电话号</param> /// <param name="_Email">邮箱</param> /// <param name="_Open">是否开启</param> /// <returns>实体类型</returns> public static Employee CreateEmployee(string _UserName, string _PassWord, string _RealName, EnumStatus.SexStatus _Sex, string _Phone, string _Tel, string _Email, EnumStatus.OpenStatus _Open) { Employee employee = new Employee(); employee.UserName = _UserName; employee.PassWord = _PassWord; employee.RealName = _RealName; employee.Sex = _Sex; employee.Phone = _Phone; employee.Tel = _Tel; employee.Email = _Email; employee.Open = _Open; return employee; }