public UserProfileId GetUniqueID(GetUniqueId uniqueIdInfo)
        {
            var profileId = new UserProfileId();

            profileId.UniqueId = dal.GetUniqueID(uniqueIdInfo.UserName, uniqueIdInfo.IsAuthenticated, uniqueIdInfo.IgnoreAuthenticationType, uniqueIdInfo.AppName);
            return(profileId);
        }
 public Cart GetUniqueID([FromBody] GetUniqueId uniqueIdInfo)
 {
     return(DBFacilitator.GetOne <Cart>(
                PostgreSQLConnectionString,
                GET_UNIQUEID_FOR_USER,
                new List <Tuple <string, string, NpgsqlDbType> >()
     {
         { new Tuple <string, string, NpgsqlDbType>(":Username", uniqueIdInfo.UserName, NpgsqlDbType.Text) },
         { new Tuple <string, string, NpgsqlDbType>(":ApplicationName", uniqueIdInfo.AppName, NpgsqlDbType.Text) }
     }
                ));
 }
Example #3
0
    protected void Page_Load(object sender, EventArgs e)
    {
        UsersBLL user = new UsersBLL();

        userName = user.GetUser().UserName;

        //pnlClient.Visible = true;
        if (!IsPostBack)
        {
            txtCaseNumber.Text = GetUniqueId.GetRandomString();
            CountryBind();
            BindRepater();
            BindPrescriptionData();
        }
    }
        public void UserLogin()
        {
            ug = new UserGroupObject(driver);

            UID      = new GetUniqueId();
            UserName = UID.GetId;
            Desp     = UID.GetId;

            uln = new UserLogin(driver);
            browserOps.Goto("https://uitesting.eb-test.site/");
            uln.UserName.SendKeys("*****@*****.**");
            uln.Password.SendKeys("Qwerty@123");
            uln.LoginButton.Click();
            Console.WriteLine("Login Success");
            browserOps.UrlToBe("https://uitesting.eb-test.site/UserDashBoard");
        }
        public void Userlogin(IWebDriver Driver)
        {
            try
            {
                browserOps.Goto("https://uitesting.eb-test.site/");
                ul.UserName.SendKeys("*****@*****.**");
                ul.Password.SendKeys("@Kurian123");
                ul.LoginButton.Click();

                UID = new GetUniqueId();

                wait.Until(webDriver => (Driver.PageSource.Contains("class=\"list-group-item inner_li Obj_link for_brd\"")));
                browserOps.Goto("https://uitesting.eb-test.site/WebForm/Index?refid=hairocraft_stagging-ebdbjiwavi72zy20200413071346-0-13-13-1419-1594");
                Console.WriteLine("Login Succesfull");
                fo = new FormObject(Driver);
            }
            catch (Exception e)
            {
                Console.WriteLine("Faliure!!  " + e.Message + "Stack Trace" + e.StackTrace);
            }
        }
Example #6
0
        public void Userlogin(string FormId)
        {
            try
            {
                browserOps.Goto("https://uitesting.eb-test.site/");
                ul.UserName.SendKeys("*****@*****.**");
                ul.Password.SendKeys("@Kurian123");
                ul.LoginButton.Click();

                fo  = new FormObject(driver);
                UID = new GetUniqueId();

                wait.Until(webDriver => (driver.PageSource.Contains("class=\"list-group-item inner_li Obj_link for_brd\"")));
                Console.WriteLine("Login Succesfull");

                FormSelect(FormId);
            }
            catch (Exception e)
            {
                Console.WriteLine("Faliure!!  " + e.Message + "Stack Trace" + e.StackTrace);
            }
        }