/// <summary> /// Prepare /// </summary> private void prepare() { __Program.hasLogin = 2; // Exit program as default lUser = new Common.BLL.Logic.GasStation.User(Common.Enum.EDatabase.GasStation); user = new Common.BLL.Entity.GasStation.User(); }
/// <summary> /// Validate user data /// </summary> /// <param name="user"></param> /// <returns></returns> private bool isValid(Common.BLL.Entity.GasStation.User user) { bool result = false; result = (user != null) && (user.username.Length > 0) && (user.password.Length > 0); return(result); }