/// <summary>
    /// Method to set text to menu options
    /// </summary>
    /// <param name="typeName">TypeName</param>
    private void SetMenuItemText()
    {
        fbTitle.Content = this.Page.Title.ToString();
        StateManager stateManager = StateManager.Instance;
        string[] virtualDir = CommonUtilities.GetPath();
        MiscellaneousController objMisc = new MiscellaneousController();
        TributesUserInfo _objTributeUserInfo = new TributesUserInfo();
        Tributes objTributes = new Tributes();
        objTributes.TributeId = _tributeId;
        if (_tributeId > 0)
        {
            _objTributeUserInfo.Tributes = objTributes;
            objMisc.GetTributeByID(_objTributeUserInfo);

            Tributes objTrib = (Tributes)stateManager.Get("TributeSession", StateManager.State.Session);
            try
            {
                if (ConfigurationManager.AppSettings["ApplicationType"].ToString().ToLower() == "yourmoments")
                {
                    lblGuestBook.Text = "Leave a message";
                    liManageTribute.InnerHtml = "<a href='" + Session["APP_BASE_DOMAIN"] + "AdminMyMomentsPrivacy.aspx?tributeid=" + _tributeId + "&sby=manage'> Manage Website </a>";
                }
                else
                {
                    if (_tributeType != null)
                    {
                        if (_tributeType.ToLower().Equals("memorial"))
                            lblGuestBook.Text = "Leave condolences";
                        else
                            lblGuestBook.Text = "Leave a message";
                    }
                    liManageTribute.InnerHtml = "<a href='" + Session["APP_BASE_DOMAIN"] + "adminmytributesprivacy.aspx?tributeid=" + _tributeId + "&sby=manage'>" + ResourceText.GetString("lbtnManageTributeSite_GB_Master") + "</a>";
                }
                if (_typeName == "GuestBook")
                {
                    pLogin.InnerHtml = ResourceText.GetString("lblloginmsg_GB_Master") + " <a href='javascript: void(0);' onclick='UserLoginModalpopupFromSubDomain(location.href,document.title);'>Log in</a> or <a href='javascript: void(0);' onclick='UserSignupModalpopupFromSubDomain(location.href,document.title);'>Sign up</a>";
                }
                else if (_typeName == PortalEnums.TributeContentEnum.Story.ToString())
                {
                    pLogin.InnerHtml = ResourceText.GetString("lblloginmsg_ST_Master") + " <a href='javascript: void(0);' onclick='UserLoginModalpopupFromSubDomain(location.href,document.title);'>Log in</a> or <a href='javascript: void(0);' onclick='UserSignupModalpopupFromSubDomain(location.href,document.title);'>Sign up</a>";

                    if (!string.IsNullOrEmpty(_objTributeUserInfo.Tributes.MessageWithoutHtml.ToString()))
                    {
                        fbDescription = _objTributeUserInfo.Tributes.MessageWithoutHtml.ToString();
                    }
                }
                if (_typeName == PortalEnums.TributeContentEnum.Gift.ToString())
                {
                    pLogin.InnerHtml = ResourceText.GetString("lblloginmsg_GT_Master") + " <a href='javascript: void(0);' onclick='UserLoginModalpopupFromSubDomain(location.href,document.title);'>Log in</a> or <a href='javascript: void(0);' onclick='UserSignupModalpopupFromSubDomain(location.href,document.title);'>Sign up</a>";
                }
                if (_typeName == PortalEnums.TributeContentEnum.Event.ToString())
                {
                    lbtnAdd.Text = "Add an event";
                }
                if (_typeName == PortalEnums.TributeContentEnum.ManageEvent.ToString())
                {
                    lbtnBackTo.Text = "Back To Event";
                }
                if (_typeName == PortalEnums.TributeContentEnum.EventFullView.ToString())
                {
                    lbtnEdit.Text = "Edit event";
                }
                if (_typeName == PortalEnums.TributeContentEnum.InviteGuest.ToString())
                {
                    lbtnBackTo.Text = "Back To Event";
                }
                #region FOR NOTES PAGES
                else if (_typeName == "TributeNotes")
                {
                    lbtnAdd.Text = ResourceText.GetString("lbtnAddNote_Note_Master");
                }
                else if (_typeName == "AddNote" || _typeName == "EditNote")
                {
                    lbtnBackTo.Text = ResourceText.GetString("lbtnBackToNotes_Note_Master");
                }
                else if (_typeName == "NoteFullView")
                {
                    lbtnEdit.Text = ResourceText.GetString("lbtnEditNote_Note_Master");
                }
                #endregion
                #region FOR VIDEO PAGES
                else if (_typeName == "AddVideo" || _typeName == "EditVideo")
                {
                    lbtnBackTo.Text = ResourceText.GetString("lbtnBackToVideos_Video_Master");
                }
                else if (_typeName == "VideoGallery")
                {
                    pLogin.InnerHtml = ResourceText.GetString("lblLogin_VideoGallery_Master") + " <a href='javascript: void(0);' onclick='UserLoginModalpopup(location.href,document.title);'>Log in</a>" + ResourceText.GetString("lblOr_ST_Master") + "<a href='javascript: void(0);' onclick='UserSignupModalpopupFromSubDomain(location.href,document.title);'>Sign up</a>";
                    lbtnAdd.Text = ResourceText.GetString("lbtnAddVideo_Video_Master");
                }
                else if (_typeName == "ManageVideo")
                {
                    pLogin.InnerHtml = ResourceText.GetString("lblLoginComment_ManageVideo_Master") + " <a href='javascript: void(0);' onclick='UserLoginModalpopup(location.href,document.title);'>Log in</a>" + ResourceText.GetString("lblOr_ST_Master") + "<a href='javascript: void(0);' onclick='UserSignupModalpopupFromSubDomain(location.href,document.title);'>Sign up</a>";
                    lbtnEdit.Text = ResourceText.GetString("lbtnEditVideo_Video_Master");
                }
                else if (_typeName == "ManageVideoTribute")
                {

                    pLogin.InnerHtml = ConfigurationManager.AppSettings["ApplicationType"].ToString().ToLower() == "yourmoments" ? ResourceText.GetString("lblLoginComment_VideoTribute_Master1") : ResourceText.GetString("lblLoginComment_VideoTribute_Master") + " <a href='javascript: void(0);' onclick='UserLoginModalpopup(location.href,document.title);'>Log in</a>" + ResourceText.GetString("lblOr_ST_Master") + "<a href='javascript: void(0);' onclick='UserSignupModalpopupFromSubDomain(location.href,document.title);'>Sign up</a>";
                    lbtnEdit.Text = ResourceText.GetString("lbtnEditVideoTribute_MV");
                }
                #endregion
                #region FOR PHOTO PAGES
                else if (_typeName == "AddPhotoAlbum")
                {
                    lbtnBackTo.Text = ResourceText.GetString("lbtnBackToPhotos_Photo_Master");
                }
                else if (_typeName == "AddPhotosToAlbum")
                {
                    lbtnBackTo.Text = "Back to photo album"; //ResourceText.GetString("lbtnBackToPhotos_Photo_Master");
                }
                else if (_typeName == "EditPhotoAlbum")
                {
                    lbtnBackTo.Text = ResourceText.GetString("lbtnBackToPhotos_EditPhoto_Master");
                }
                else if (_typeName == "PhotoGallery")
                {
                    pLogin.InnerHtml = ResourceText.GetString("lblLogin_PhotoGallery_Master") + " <a href='javascript: void(0);' onclick='UserLoginModalpopup(location.href,document.title);'>Log in</a>" + ResourceText.GetString("lblOr_ST_Master") + "<a href='javascript: void(0);' onclick='UserSignupModalpopupFromSubDomain(location.href,document.title);'>Sign up</a>";
                    lbtnAdd.Text = ResourceText.GetString("lbtnCreateAlbum_Photo_Master");
                }
                else if (_typeName == "PhotoAlbum")
                {
                    pLogin.InnerHtml = ResourceText.GetString("txtLogin_PA_Master") + " <a href='javascript: void(0);' onclick='UserLoginModalpopup(location.href,document.title);'>Log in</a>" + ResourceText.GetString("lblOr_ST_Master") + "<a href='javascript: void(0);' onclick='UserSignupModalpopupFromSubDomain(location.href,document.title);'>Sign up</a>";
                    lbtnAdd.Text = ResourceText.GetString("lbtnAddPhotos_PA_Master");
                    lbtnEdit.Text = ResourceText.GetString("lbtnEditAlbum_PA_Master");
                }
                else if (_typeName == "PhotoFullView")
                {
                    pLogin.InnerHtml = ResourceText.GetString("txtLogin_PV_Master") + " <a href='javascript: void(0);' onclick='UserLoginModalpopup(location.href,document.title);'>" + ResourceText.GetString("lnkLogin_Master") + "</a>" + ResourceText.GetString("lblOr_ST_Master") + "<a href='javascript: void(0);' onclick='UserSignupModalpopupFromSubDomain(location.href,document.title);'>" + ResourceText.GetString("lnkSignup_Master") + "</a>";
                    lbtnEdit.Text = ResourceText.GetString("lbtnEditPhoto_PV_Master");
                }
                else if (_typeName == "ManagePhoto")
                {
                    lbtnBackTo.Text = ResourceText.GetString("lbtnBackToPhotos_MP_Master");
                }

                if (objTrib != null)
                {
                    if (string.IsNullOrEmpty(fbDescription))
                        fbDescription = _objTributeUserInfo.Tributes.WelcomeMessage.ToString();
                    if (string.IsNullOrEmpty(fbThumbnail))
                        fbThumbnail = virtualDir[2] + _objTributeUserInfo.Tributes.TributeImage.ToString();
                }
                fbDesc.Content = fbDescription;
                fbThumb.Content = fbThumbnail;
                PageDesc.Content = fbDescription;
                PageThumb.Href = fbThumbnail;
                #endregion
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
    }
 public void GetTributeByID(TributesUserInfo _objTributeUserinfo)
 {
     FacadeManager.UserInfoManager.GetTributeByID(_objTributeUserinfo);
 }
        public void GetTributeOnIdTest()
        {
            UserInfoManager target = new UserInfoManager(); // TODO: Initialize to an appropriate value
            int UserId = InsertDummyUser("tj_op");
            int tributeId = 0;
            GetMyTributes _objtribute = new GetMyTributes();
            _objtribute.UserId = UserId;
            object[] _param = { _objtribute, 0, 1, 1 };
            if (_objtribute.CustomError == null)
            {
                List<GetMyTributes> Mytributes = new List<GetMyTributes>();
                Mytributes = target.GetMyTributes(_param);
                Assert.AreEqual(true, Mytributes.Count > 0);
                tributeId = Mytributes[0].TributeId;
            }
            TributesUserInfo _objTributeUserinfo = new TributesUserInfo(); // TODO: Initialize to an appropriate value
            _objTributeUserinfo.Tributes = new Tributes();
            _objTributeUserinfo.Tributes.TributeId = tributeId;
            target.GetTributeOnId(_objTributeUserinfo);

            //Write Asserts here once the stored procedure is fixed

            //Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }
        public void GetTributeByIDTest()
        {
            UserInfoManager target = new UserInfoManager(); // TODO: Initialize to an appropriate value
            int UserId = InsertDummyUser("tj_op");
            int tributeId = 0;
            GetMyTributes _objtribute = new GetMyTributes();
            _objtribute.UserId = UserId;
            object[] _param = { _objtribute, 0, 1, 2 };
            if (_objtribute.CustomError == null)
            {
                List<GetMyTributes> Mytributes = new List<GetMyTributes>();
                Mytributes = target.GetMyTributes(_param);
                Assert.AreEqual(true, Mytributes.Count > 0);
                tributeId = Mytributes[0].TributeId;

            }
            TributesUserInfo _objTributeUserinfo = new TributesUserInfo(); // TODO: Initialize to an appropriate value
            _objTributeUserinfo.Tributes = new Tributes();
            _objTributeUserinfo.Tributes.TributeId = tributeId;

            target.GetTributeByID(_objTributeUserinfo);
            Assert.AreEqual("tj", _objTributeUserinfo.Tributes.TributeName);
            Assert.AreEqual("xyz", _objTributeUserinfo.Tributes.TributeUrl);
            Assert.AreEqual("Birthday", _objTributeUserinfo.Tributes.TypeDescription);
            Assert.AreEqual("tj", _objTributeUserinfo.Tributes.TributeName);
            Assert.AreEqual("11-03-1983 AM 12:00:00", _objTributeUserinfo.Tributes.Date1.ToString());
            //Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }
 public void GetTributeOnId(TributesUserInfo _objTributeUserinfo)
 {
     UserInfoResource objUser = new UserInfoResource();
     object[] param = { _objTributeUserinfo };
     objUser.GetTributeOnId(param);
 }
 /// <summary>
 /// Method to get details of the selected tribute based on the tributeid.
 /// </summary>
 /// <param name="tributeId">TributeId</param>
 /// <returns>Tribute details in TributeUserInfo entity.</returns>
 public TributesUserInfo GetTributeDetails(int tributeId)
 {
     TributesUserInfo objTributeDetails = new TributesUserInfo();
     Tributes objTributeId = new Tributes();
     objTributeId.TributeId = tributeId;
     objTributeDetails.Tributes = objTributeId;
     FacadeManager.UserInfoManager.GetTributeByID(objTributeDetails);
     return objTributeDetails;
 }