protected void btnSubmit_Click(object sender, EventArgs e)
    {
        GenralUserInfo objGenralUserInfo = new GenralUserInfo();
        UserInfo objUserInfo = new UserInfo();

        TributesPortal.Utilities.StateManager stateManager = StateManager.Instance;

        //stateManager.Add("UserId", objGenralUserInfo.RecentUsers.UserID.ToString(), StateManager.State.Session);
        objUserInfo.UserID = int.Parse(stateManager.Get("UserId", StateManager.State.Session).ToString());
        objUserInfo.UserEmail = txtEmail.Text.Trim();//int.Parse(stateManager.Get("UserId", StateManager.State.Session).ToString());
        objUserInfo.UserPassword = txtPassword.Text.Trim();
        objGenralUserInfo.RecentUsers = objUserInfo;
        _presenter.OnChangeEmailPassword(objGenralUserInfo);
        if (objGenralUserInfo.CustomError == null)
        {
            txtEmail.Text = objGenralUserInfo.RecentUsers.UserEmail;
            txtPassword.Text = objGenralUserInfo.RecentUsers.UserPassword;
            txtConformPassword.Text = objGenralUserInfo.RecentUsers.UserPassword;
            lblMessage.Text = ResourceText.GetString("msgSuccess_CEP");
        }
        else
        {
            lblMessage.Text = objGenralUserInfo.CustomError.ErrorMessage.ToString();
        }
    }
    public string ValidateUser(string UserName, string Passsword)
    {
        string _UserType = string.Empty;
        try
        {
            GenralUserInfo objGenralUserInfo = new GenralUserInfo();
            UserInfo objUserInfo = new UserInfo();

            objUserInfo.UserName = UserName;
            objUserInfo.UserPassword = Passsword;
            objGenralUserInfo.RecentUsers = objUserInfo;
            _presenter.OnLogin(objGenralUserInfo);

            if (objGenralUserInfo.CustomError == null)
            {
                //ShowMessage(objGenralUserInfo.CustomError.ErrorMessage.ToString());
                _UserType = objGenralUserInfo.RecentUsers.UserType.ToString();
            }
            else
            {
                ShowMessage(objGenralUserInfo.CustomError.ErrorMessage.ToString());
            }

        }
        catch (Exception ex)
        {
            throw ex;
        }

        return _UserType;
    }
        public void CheckAndSendPasswordPopUpTest()
        {
            UserInfoManager target = new UserInfoManager(); // TODO: Initialize to an appropriate value
            GenralUserInfo _objGenralUserInfo = new GenralUserInfo(); // TODO: Initialize to an appropriate value
            UserInfo objUserInfo = new UserInfo();

            objUserInfo.UserEmail = "*****@*****.**";
            _objGenralUserInfo.RecentUsers = objUserInfo;

            bool _Reset = false; // TODO: Initialize to an appropriate value
            target.CheckAndSendPassword(_objGenralUserInfo, _Reset);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }
 private void SetSessionValue(GenralUserInfo _objGenralUserInfo)
 {
     SessionValue _objSessionValue = new SessionValue(_objGenralUserInfo.RecentUsers.UserID,
                                                            _objGenralUserInfo.RecentUsers.UserName,
                                                            _objGenralUserInfo.RecentUsers.FirstName,
                                                            _objGenralUserInfo.RecentUsers.LastName,
                                                            _objGenralUserInfo.RecentUsers.UserEmail,
                                                            int.Parse(_objGenralUserInfo.RecentUsers.UserType),
                                                            _objGenralUserInfo.RecentUsers.UserTypeDescription,
                                                            _objGenralUserInfo.RecentUsers.IsUsernameVisiable
                                                             //Added by Rupendra to get User Image
                                                                , _objGenralUserInfo.RecentUsers.UserImage
                                                            );
     TributesPortal.Utilities.StateManager stateManager = StateManager.Instance;
     stateManager.Add("objSessionvalue", _objSessionValue, StateManager.State.Session);
 }
        public void ChangeEmailPassword(GenralUserInfo _objGenralUserInfo)
        {
            UserInfoResource objUser = new UserInfoResource();
            object[] param = { _objGenralUserInfo };
            string usermail = GetEmail(_objGenralUserInfo.RecentUsers.UserID);
            try
            {
                string _EmailBody = string.Empty;
                string _Subject = string.Empty;
                if (objUser.ChangeEmailPassword(param) > 0)
                {
                    EmailMessages objEmail = EmailMessages.Instance;
                    //string _EmailBody = GetEmailBodyOnEmailAndPasswordChanged(_objGenralUserInfo.RecentUsers);
                    MailBodies objMail = new MailBodies();
                    if ((_objGenralUserInfo.RecentUsers.UserEmail.Length != 0) && (_objGenralUserInfo.RecentUsers.UserPassword.Length > 0))
                    {
                        _Subject = "Your Tribute Password and Email Reminder";
                        _EmailBody = objMail.ChangeEmailPassword(_objGenralUserInfo.RecentUsers.UserName, _objGenralUserInfo.RecentUsers.UserEmail, _objGenralUserInfo.RecentUsers.UserPassword);

                    }
                    else if ((_objGenralUserInfo.RecentUsers.UserEmail.Length == 0) && (_objGenralUserInfo.RecentUsers.UserPassword.Length != 0))
                    {
                        _Subject = "Your Tribute Password Reminder";
                        _EmailBody = objMail.ForgetPassword(_objGenralUserInfo.RecentUsers.UserName, _objGenralUserInfo.RecentUsers.UserPassword);
                    }
                    else if ((_objGenralUserInfo.RecentUsers.UserEmail.Length != 0) && (_objGenralUserInfo.RecentUsers.UserPassword.Length == 0))
                    {
                        _Subject = "Your Tribute Email Reminder";
                        _EmailBody = objMail.ChangeEmail(_objGenralUserInfo.RecentUsers.UserName, _objGenralUserInfo.RecentUsers.UserEmail);
                    }

                    bool val = objEmail.SendMessages(ForgetPassAdmin, usermail, _Subject, _EmailBody, EmailMessages.TextFormat.Html.ToString());

                }
            }
            catch (Exception ex)
            {
                Errors objError = new Errors();
                objError.ErrorMessage = ex.Message;
                _objGenralUserInfo.CustomError = objError;
            }
        }
    public bool OnFacebookLogin(string fbName)
    {
        GenralUserInfo _objGenralUserInfo = new GenralUserInfo();
        UserInfo objUserInfo = new UserInfo();
        objUserInfo.FacebookUid = _FacebookUid;
        objUserInfo.ApplicationType = ApplicationType;
        _objGenralUserInfo.RecentUsers = objUserInfo;
        if (objUserInfo.FacebookUid == null) return false;
        FacadeManager.UserInfoManager.CheckFacebookAccountAvailability(_objGenralUserInfo);
        if (_objGenralUserInfo.RecentUsers.UserID > 0)
        {
            SetSessionValue(_objGenralUserInfo);
            return true;
        }
        else
        {

        }
        return false;
    }
 private void CheckAvailablity(string UserName, string Password)
 {
     string uName = string.Empty;
     HiddenField hf = (HiddenField)this.FindControl("ctl00$HiddenFieldAvailability");
     UserInfoManager objUserInfoManager = new UserInfoManager();
     GenralUserInfo _objGenralUserInfo = new GenralUserInfo();
     UserInfo objUserInfo = new UserInfo();
     objUserInfo.UserName = UserName;
     objUserInfo.UserPassword = Password.ToLower().ToString();;
     _objGenralUserInfo.RecentUsers = objUserInfo;
     objUserInfoManager.UserLogin(_objGenralUserInfo);
     if (_objGenralUserInfo.CustomError == null)
     {
          SetSessionValue(_objGenralUserInfo);
         Response.Write("true");
     }
     else
     {
         Response.Write("false");
     }
 }
    public string ValidateUser(string objUserName, string objUserPasss)
    {
        string _UserType = string.Empty;
        try
        {
            GenralUserInfo objGenralUserInfo = new GenralUserInfo();
            UserInfo objUserInfo = new UserInfo();

            objUserInfo.UserName = objUserName;
            objUserInfo.UserPassword = objUserPasss;
            objGenralUserInfo.RecentUsers = objUserInfo;
            _presenter.OnLogin(objGenralUserInfo);

            if (objGenralUserInfo.CustomError == null)
            {
                //ShowMessage(objGenralUserInfo.CustomError.ErrorMessage.ToString());
                _UserType = objGenralUserInfo.RecentUsers.UserType.ToString();
                TributesPortal.Utilities.StateManager stateManager = StateManager.Instance;

                stateManager.Add("UserId", objGenralUserInfo.RecentUsers.UserID.ToString(), StateManager.State.Session);
                stateManager.Add("UserName", objGenralUserInfo.RecentUsers.UserName.ToString(), StateManager.State.Session);
                stateManager.Add("FirstName", objGenralUserInfo.RecentUsers.FirstName.ToString(), StateManager.State.Session);
                stateManager.Add("LastName", objGenralUserInfo.RecentUsers.LastName.ToString(), StateManager.State.Session);
                stateManager.Add("UserType", objGenralUserInfo.RecentUsers.UserType.ToString(), StateManager.State.Session);
             //   stateManager.Add("UserTypeDescription", objGenralUserInfo.RecentUsers.UserTypeDescription.ToString(), StateManager.State.Session);
                stateManager.Add("UserImagePath", objGenralUserInfo.RecentUsers.UserImage.ToString(), StateManager.State.Session);
            }
            else
            {
                lblFailureText.Text = objGenralUserInfo.CustomError.ErrorMessage.ToString();
            }

        }
        catch (Exception ex)
        {
            throw ex;
        }

        return _UserType;
    }
 protected void btnSubmit_Click(object sender, EventArgs e)
 {
     try
     {
         lblMsg.Text = "";
         GenralUserInfo objGenralUserInfo = new GenralUserInfo();
         UserInfo objUserInfo = new UserInfo();
         objUserInfo.UserEmail = txtEmailId.Text.ToString();
         objGenralUserInfo.RecentUsers = objUserInfo;
         _presenter.CheckAndSendPassword(objGenralUserInfo, false);
         if (objGenralUserInfo.CustomError == null)
         {
             ShowMessage("Password Information send successfully");
         }
         else
         {
             lblMsg.Text = objGenralUserInfo.CustomError.ErrorMessage.ToString();
         }
     }
     catch (Exception e1)
     {
         lblMsg.Text = e1.Message;//objGenralUserInfo.CustomError.ErrorMessage.ToString();
     }
 }
예제 #10
0
    protected void popuplbtnSendemail_Click(object sender, EventArgs e)
    {
        GenralUserInfo objGenralUserInfo = new GenralUserInfo();
        UserInfo objUserInfo = new UserInfo();
        objUserInfo.UserEmail = txtLoginEmail1.Text;
        objGenralUserInfo.RecentUsers = objUserInfo;
        UserInfoManager objuse = new UserInfoManager();
        objuse.CheckAndSendPassword(objGenralUserInfo, false);
        if (objGenralUserInfo.CustomError != null)
        {
            string ErrorMsg = objGenralUserInfo.CustomError.ErrorMessage.ToString();
            if (ErrorMsg != "")
            {
                ScriptManager.RegisterClientScriptBlock(Page, GetType(), "HidePanel", "setForgotPassword_();", true);

            }
        }
        else
        {
            txtLoginEmail1.Text = string.Empty;

            StringBuilder strb = new StringBuilder();
            strb.Append("parent.modalClose_();");
            ScriptManager.RegisterClientScriptBlock(Page, GetType(), "HidePanel", strb.ToString(), true);
        }
    }
 protected void popuplbtnSendemail_Click(object sender, EventArgs e)
 {
     try
     {
         GenralUserInfo objGenralUserInfo = new GenralUserInfo();
         UserInfo objUserInfo = new UserInfo();
         objUserInfo.UserEmail = txtLoginEmail1.Text;
         objGenralUserInfo.RecentUsers = objUserInfo;
         UsersController objUsersController = new UsersController();
         objUsersController.CheckAndSendPassword(objGenralUserInfo, false);
         txtLoginEmail1.Text = string.Empty;
         Response.Redirect(Redirect.RedirectToPage(Redirect.PageList.Inner2LoginPage.ToString()));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
        public void CheckAndSendPasswordTest()
        {
            UserInfoManager target = new UserInfoManager(); // TODO: Initialize to an appropriate value
            GenralUserInfo _objGenralUserInfo = new GenralUserInfo(); // TODO: Initialize to an appropriate value
            _objGenralUserInfo.RecentUsers = new UserInfo();
            _objGenralUserInfo.RecentUsers.UserEmail = "*****@*****.**";
            _objGenralUserInfo.RecentUsers.UserPassword = "******";
            _objGenralUserInfo.RecentUsers.UserName = "******";

            bool _Reset = true; // TODO: Initialize to an appropriate value
            target.CheckAndSendPassword(_objGenralUserInfo, _Reset);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }
        public void GetUserDataTest()
        {
            UserInfoManager target = new UserInfoManager(); // TODO: Initialize to an appropriate value
            GenralUserInfo _objGenralUserInfo = new GenralUserInfo(); // TODO: Initialize to an appropriate value
            _objGenralUserInfo.RecentUsers = new UserInfo();
            _objGenralUserInfo.RecentUsers.UserID = InsertDummyUser("tj_op");
            target.GetUserData(_objGenralUserInfo);
            Assert.AreEqual("*****@*****.**", _objGenralUserInfo.RecentUsers.UserEmail);
            Assert.AreEqual("zSpeN+GdR0Ey9VrM9QyvUA==", _objGenralUserInfo.RecentUsers.UserPassword);

            // Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }
예제 #14
0
        /*public string GetEventName(int _EventId)
        {
            UserInfoResource objUser = new UserInfoResource();
            return objUser.GetEventName(_EventId);
        }*/
        public void CheckAndSendPassword(GenralUserInfo _objGenralUserInfo, bool _Reset)
        {
            UserInfoResource objUser = new UserInfoResource();
            object[] param = { _objGenralUserInfo };
            objUser.CheckAndSendPassword(param, _Reset);

            if (_objGenralUserInfo.CustomError == null)
            {
                EmailMessages objEmail = EmailMessages.Instance;
                //string _EmailBody = GetEmailBody(_objGenralUserInfo.RecentUsers);
                MailBodies objMail = new MailBodies();
                string Password = TributePortalSecurity.Security.DecryptSymmetric(_objGenralUserInfo.RecentUsers.UserPassword);
                string _EmailBody = objMail.ForgetPassword(_objGenralUserInfo.RecentUsers.UserName, Password);
                bool val = objEmail.SendMessages(ForgetPassAdmin, _objGenralUserInfo.RecentUsers.UserEmail, "Your Tribute Password Reminder", _EmailBody, EmailMessages.TextFormat.Html.ToString());
                // bool val = objEmail.SendMessages("*****@*****.**", "*****@*****.**", "Forgot password", _EmailBody, EmailMessages.TextFormat.Html.ToString());

            }
        }
    private void LoadUserData()
    {
        //lblMsg.Text = "";
        GenralUserInfo objGenralUserInfo = new GenralUserInfo();
        UserInfo objUserInfo = new UserInfo();

        TributesPortal.Utilities.StateManager stateManager = StateManager.Instance;

        //stateManager.Add("UserId", objGenralUserInfo.RecentUsers.UserID.ToString(), StateManager.State.Session);
        objUserInfo.UserID = int.Parse(stateManager.Get("UserId", StateManager.State.Session).ToString());
        objGenralUserInfo.RecentUsers = objUserInfo;
        _presenter.GetUserData(objGenralUserInfo);
        if (objGenralUserInfo.CustomError == null)
        {
            txtEmail.Text = objGenralUserInfo.RecentUsers.UserEmail;
            txtPassword.Text = objGenralUserInfo.RecentUsers.UserPassword;
            txtConformPassword.Text = objGenralUserInfo.RecentUsers.UserPassword;
        }
        else
        {
            lblMessage.Text = objGenralUserInfo.CustomError.ErrorMessage.ToString();
        }
    }
예제 #16
0
 public void CheckFacebookAccountAvailability(GenralUserInfo _objGenralUserInfo)
 {
     UserInfoResource objUser = new UserInfoResource();
     objUser.CheckFacebookAccountAvailability(_objGenralUserInfo);
 }
        public void CheckFacebookAccountAvailabilityTest()
        {
            UserInfoManager target = new UserInfoManager(); // TODO: Initialize to an appropriate value

            GenralUserInfo _objGenralUserInfo = new GenralUserInfo();
            UserInfo objUserInfo = new UserInfo();
            objUserInfo.UserName = "******";
            objUserInfo.UserPassword = "******";
            objUserInfo.FacebookUid = null;
            _objGenralUserInfo.RecentUsers = objUserInfo;

            //testing CheckFacebookAccountAvailability function
            target.CheckFacebookAccountAvailability(_objGenralUserInfo);

            //UserInfo objUserInfo = new UserInfo();
            objUserInfo.UserName = "******";
            objUserInfo.UserPassword = "******";
            objUserInfo.FacebookUid = 1598003497;
            _objGenralUserInfo.RecentUsers = objUserInfo;

            //testing CheckFacebookAccountAvailability function inside CheckFacebookAccountAvailability function
            object[] objParam = { _objGenralUserInfo.RecentUsers.FacebookUid };
            DataSet _objDataSet = GetDataSet("usp_GetFacebookUser", objParam);

            Assert.AreEqual(1, _objDataSet.Tables[0].Rows.Count);

            if (_objDataSet.Tables[0].Rows.Count > 0)
            {
                Assert.AreEqual(21058, (int)_objDataSet.Tables[0].Rows[0]["UserId"]);
                Assert.AreEqual("debbi_henkel", _objDataSet.Tables[0].Rows[0]["UserName"].ToString());
                Assert.AreEqual("Debbi", _objDataSet.Tables[0].Rows[0]["FirstName"].ToString());
                Assert.AreEqual("Henkel", _objDataSet.Tables[0].Rows[0]["LastName"].ToString());
            }
            //Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }
예제 #18
0
 public void UserLogin(GenralUserInfo _objGenralUserInfo)
 {
     UserInfoResource objUser = new UserInfoResource();
     object[] param = { _objGenralUserInfo };
     objUser.CheckLogin(param);
 }
 public void SetAccountEmailPassword(GenralUserInfo _objGenralUserInfo)
 {
     FacadeManager.UserInfoManager.ChangeEmailPassword(_objGenralUserInfo);
 }
 public void CheckAndSendPassword(GenralUserInfo _objGenralUserInfo, bool _Reset)
 {
     FacadeManager.UserInfoManager.CheckAndSendPassword(_objGenralUserInfo, _Reset);
 }
        public void CheckFacebookAccountAvailability(GenralUserInfo objUser)
        {
            try
            {

                object[] objParam = { objUser.RecentUsers.FacebookUid, objUser.RecentUsers.ApplicationType };
                DataSet _objDataSet = GetDataSet("usp_GetFacebookUser", objParam);

                if (_objDataSet.Tables[0].Rows.Count > 0)
                {
                    objUser.RecentUsers.UserID = (int)_objDataSet.Tables[0].Rows[0]["UserId"];
                    objUser.RecentUsers.UserName = _objDataSet.Tables[0].Rows[0]["UserName"].ToString();
                    objUser.RecentUsers.FirstName = _objDataSet.Tables[0].Rows[0]["FirstName"].ToString();
                    objUser.RecentUsers.LastName = _objDataSet.Tables[0].Rows[0]["LastName"].ToString();
                    objUser.RecentUsers.UserType = _objDataSet.Tables[0].Rows[0]["UserType"].ToString();
                    objUser.RecentUsers.IsUsernameVisiable = Convert.ToBoolean(_objDataSet.Tables[0].Rows[0]["IsUsernameVisiable"].ToString());
                    objUser.RecentUsers.UserTypeDescription = _objDataSet.Tables[0].Rows[0]["TypeDescription"].ToString();
                    objUser.RecentUsers.UserEmail = _objDataSet.Tables[0].Rows[0]["Email"].ToString();
                    objUser.RecentUsers.UserImage = _objDataSet.Tables[0].Rows[0]["UserImage"].ToString();
                }
            }
            catch (System.Data.SqlClient.SqlException sqlEx)
            {
                if (sqlEx.Number >= 50000)
                {
                    Errors objError = new Errors();
                    objError.ErrorMessage = sqlEx.Message;
                    objUser.CustomError = objError;
                }
            }
        }
    /// <summary>
    /// When Admin Login to Change the User Settings
    /// </summary>
    public void OnAdminLogin()
    {
        GenralUserInfo _objGenralUserInfo = new GenralUserInfo();
        UserInfo objUserInfo = new UserInfo();
        UserRegistration _objUserReg = new UserRegistration();

        objUserInfo.UserID = Convert.ToInt32(Request["id"].ToString());

        this._presenter.GetUserCompleteDetail(objUserInfo.UserID);
    }
예제 #23
0
    private void CheckUserAvailablity(string UserName, string Password)
    {
        errorPwd.Visible = false;
        string uName = string.Empty;
        HiddenField hf = (HiddenField)this.FindControl("ctl00$HiddenFieldAvailability");
        UserInfoManager objUserInfoManager = new UserInfoManager();
        GenralUserInfo _objGenralUserInfo = new GenralUserInfo();
        UserInfo objUserInfo = new UserInfo();
        objUserInfo.UserName = UserName;
        objUserInfo.UserPassword = Password.ToLower().ToString();
        objUserInfo.ApplicationType = ConfigurationManager.AppSettings["ApplicationType"].ToString();
        _objGenralUserInfo.RecentUsers = objUserInfo;

        objUserInfoManager.UserLogin(_objGenralUserInfo);
        if (_objGenralUserInfo.CustomError == null)
        {
            //added the below two lines to handle the session issue
            Response.Cookies.Add(new HttpCookie("ASP.NET_SessionId", Session.SessionID));
            Response.Cookies["ASP.NET_SessionId"].Domain = "." + WebConfig.TopLevelDomain;

            SetSessionValue(_objGenralUserInfo);
            RedirectPage();
        }
        else
        {
            errorPwd.Visible = true;
            ScriptManager.RegisterClientScriptBlock(Page, GetType(), "HidePanel", "setIndicatorPassword_();", true);
        }
    }
예제 #24
0
 public bool OnFacebookLogin(string fbName)
 {
     GenralUserInfo _objGenralUserInfo = new GenralUserInfo();
     UserInfo objUserInfo = new UserInfo();
     objUserInfo.FacebookUid = _FacebookUid;
     objUserInfo.ApplicationType = ApplicationType;
     _objGenralUserInfo.RecentUsers = objUserInfo;
     if (objUserInfo.FacebookUid == null) return false;
     FacadeManager.UserInfoManager.CheckFacebookAccountAvailability(_objGenralUserInfo);
     //if (objGenralUserInfo.RecentUsers.UserID != null && objGenralUserInfo.RecentUsers.UserID > 0)  // commented by Ud to remove warning
     if (_objGenralUserInfo.RecentUsers.UserID > 0)
     {
         SetSessionValue(_objGenralUserInfo);
         return true;
     }
     else
     {
         //View.Message =
         //"If you are already a Your Tribute member, then please log in to associate your account with your Facebook credentials.";
         //;
     }
     return false;
 }
        public void UserLoginTest()
        {
            UserInfoManager target = new UserInfoManager(); // TODO: Initialize to an appropriate value
            GenralUserInfo objUser = new GenralUserInfo();
            UserInfo objUserInfo = new UserInfo();

            int UserId = InsertDummyUser("tj_op");
            objUserInfo.UserName = "******";
            objUserInfo.UserPassword = "******";

            objUserInfo.FacebookUid = null;
            objUser.RecentUsers = objUserInfo;

            //testing UserLogin Function
            target.UserLogin(objUser);

            //Testing CheckLogin function inside UserLogin Function
            object[] objParam ={ objUser.RecentUsers.UserName.ToString(),
                                     objUser.RecentUsers.UserPassword.ToString(),
                                     objUser.RecentUsers.FacebookUid
                                   };

            DataSet _objDataSet = GetDataSetWithoutCheckingIOVS("usp_ValidateWebsiteUser", objParam);

            int count = _objDataSet.Tables[0].Rows.Count;
            Assert.AreEqual(1, count);
            if (count > 0)
            {
                Assert.AreEqual(UserId, (int)_objDataSet.Tables[0].Rows[0]["UserId"]);
                Assert.AreEqual("tj_op", _objDataSet.Tables[0].Rows[0]["UserName"].ToString());
            }
        }
        public void UserSiteAdminLoginTest()
        {
            UserInfoManager target = new UserInfoManager(); // TODO: Initialize to an appropriate value
            //InsertDummyUser("tj_op");
            GenralUserInfo objUser = new GenralUserInfo();
            UserInfo objUserInfo = new UserInfo();
            objUserInfo.UserName = "******";
            objUserInfo.UserPassword = "******";
            objUserInfo.FacebookUid = null;
            objUser.RecentUsers = objUserInfo;

            target.UserSiteAdminLogin(objUser);
            // Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }
예제 #27
0
 public void GetUserData(GenralUserInfo _objGenralUserInfo)
 {
     UserInfoResource objUser = new UserInfoResource();
     object[] param = { _objGenralUserInfo };
     objUser.GetUserData(param);
 }
 public void ValidateLogin(GenralUserInfo objGenralUserInfo)
 {
     //code here
     FacadeManager.UserInfoManager.UserLogin(objGenralUserInfo);
 }
예제 #29
0
 public void UserSiteAdminLogin(GenralUserInfo _objGenralUserInfo)
 {
     UserInfoResource objUser = new UserInfoResource();
     object[] param = { _objGenralUserInfo };
     objUser.SignInSiteAdmin(param);
 }