/// <summary> /// Gets the hash code /// </summary> /// <returns>Hash code</returns> public override int GetHashCode() { unchecked // Overflow is fine, just wrap { var hashCode = 41; // Suitable nullity checks etc, of course :) if (ID != null) { hashCode = hashCode * 59 + ID.GetHashCode(); } if (Name != null) { hashCode = hashCode * 59 + Name.GetHashCode(); } if (PhoneNumber != null) { hashCode = hashCode * 59 + PhoneNumber.GetHashCode(); } if (EmailID != null) { hashCode = hashCode * 59 + EmailID.GetHashCode(); } if (Rating != null) { hashCode = hashCode * 59 + Rating.GetHashCode(); } return(hashCode); } }
private void Website_KeyDown(object sender, KeyEventArgs e) { if (e.Key == Key.Enter) { EmailID.Focus(); } }
/// <summary> /// Filling the details in the conatct page /// </summary> public void FillTheDetails() { IWantToDropDown.Click(); IWantToDropDownOption.Click(); WebDriverWait wait = new WebDriverWait(driver, TimeSpan.FromSeconds(10)); wait.Until(ExpectedConditions.ElementToBeClickable(By.XPath(".//*[@id='contactForm']/div[4]/div[2]/div[2]/div/div[1]/button"))); ChangeButton.Click(); ChangeButtonOption.Click(); CurrentBenifitButton.Click(); CurrentBenifitButtonOption.Click(); DedutioPerDay.SendKeys(ExcelOperation.GetData[3]); PayDatePerChange.Click(); EmailID.Clear(); EmailID.SendKeys(ExcelOperation.GetData[4]); PreferedContact.Click(); MessageBox.SendKeys(ExcelOperation.GetData[5]); if (SubmitMessage.Text != "Submit") { throw new Exception(); } }
public void Testincomingjson() { var emailId = new EmailID { DomainName = "hotmail.com", UserName = "******" }; var avatar = new Avatar(); Candidate Candy = new Candidate(); }
/// <summary> /// Gets callback result. /// </summary> public string GetCallbackResult() { mParameters = new Hashtable(); mParameters["where"] = gridElem.WhereCondition; mParameters["orderby"] = gridElem.SortDirect; WindowHelper.Add(Identifier, mParameters); string queryString = "?params=" + Identifier; queryString = URLHelper.AddParameterToUrl(queryString, "hash", QueryHelper.GetHash(queryString)); queryString = URLHelper.AddParameterToUrl(queryString, "emailid", EmailID.ToString()); return(queryString); }
public override bool Equals(object obj) { Customer customer = obj as Customer; if (customer != null) { if (IPAdress.Equals(customer.IPAdress, StringComparison.InvariantCultureIgnoreCase) || Country.Equals(customer.Country, StringComparison.InvariantCultureIgnoreCase) || City.Equals(customer.City, StringComparison.InvariantCultureIgnoreCase) || EmailID.Equals(customer.EmailID, StringComparison.InvariantCultureIgnoreCase)) { return(true); } } return(false); }
public override bool Equals(object obj) { TransactionRequest transaction = obj as TransactionRequest; if (transaction != null) { if (IPAdress.Equals(transaction.IPAdress, StringComparison.InvariantCultureIgnoreCase) || Country.Equals(transaction.Country, StringComparison.InvariantCultureIgnoreCase) || City.Equals(transaction.City, StringComparison.InvariantCultureIgnoreCase) || EmailID.Equals(transaction.EmailID, StringComparison.InvariantCultureIgnoreCase)) { return(true); } } return(false); }
/// <summary> /// Gets callback result. /// </summary> public string GetCallbackResult() { mParameters = new Hashtable(); mParameters["where"] = gridElem.WhereCondition; mParameters["orderby"] = gridElem.SortDirect; // Get the dialog identifier Guid dialogIdentifier = GetDialogIdentifier(); // Store the dialog identifier with appropriate data in the session WindowHelper.Add(dialogIdentifier.ToString(), mParameters); string queryString = "?params=" + dialogIdentifier; queryString = URLHelper.AddParameterToUrl(queryString, "hash", QueryHelper.GetHash(queryString)); queryString = URLHelper.AddParameterToUrl(queryString, "emailid", EmailID.ToString()); return(queryString); }
/// <summary> /// Returns true if Vendor instances are equal /// </summary> /// <param name="other">Instance of Vendor to be compared</param> /// <returns>Boolean</returns> public bool Equals(Vendor other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( ID == other.ID || ID != null && ID.Equals(other.ID) ) && ( Name == other.Name || Name != null && Name.Equals(other.Name) ) && ( PhoneNumber == other.PhoneNumber || PhoneNumber != null && PhoneNumber.Equals(other.PhoneNumber) ) && ( EmailID == other.EmailID || EmailID != null && EmailID.Equals(other.EmailID) ) && ( Rating == other.Rating || Rating != null && Rating.Equals(other.Rating) )); }
public void FillPersonalDetails() { SelectElement oSelect = new SelectElement(driver.FindElement(By.Id("TitleCombo"))); oSelect.SelectByText(ExcelOperation.GetData[1]); GivenName.Clear(); string GivenNameString = GenericHelper.RandomString(5); ExcelOperation.AddData("TestData2", GivenNameString, "TC1_CreateAnEmployee"); GivenName.SendKeys(GivenNameString); OtherName.Clear(); OtherName.SendKeys(ExcelOperation.GetData[3]); Surname.Clear(); Surname.SendKeys(ExcelOperation.GetData[4]); PreferenceName.Clear(); PreferenceName.SendKeys(ExcelOperation.GetData[5]); DateOfBirth.Clear(); DateOfBirth.SendKeys(ExcelOperation.GetData[6]); Gender.Click(); MobNumber.Clear(); // MobNumber.SendKeys(ExcelOperation.GetData[7]); MobNumber.SendKeys("9999 999999"); EmailID.Clear(); EmailID.SendKeys(ExcelOperation.GetData[8]); PerferedMethodToContact.Click(); GenericHelper.AllScreenShot(driver); var ele = driver.FindElement(By.Id("CommandButtons_cmdNextEnabled")); IJavaScriptExecutor executor = (IJavaScriptExecutor)driver; executor.ExecuteScript("var ele=arguments[0];setTimeout(function(){ele.click();},100)", ele); }
//This is to enter Email ID public void Type_Email(string Email) { EmailID.SendKeys(Email); }
private void SetupControls() { FormatTypeCode.Items.Add(new ListItem(nameof(FormatTypeCode), nameof(FormatTypeCode))); SubscribeTypeCode.Items.Add(new ListItem(nameof(SubscribeTypeCode), nameof(SubscribeTypeCode))); _privateObject.SetField(nameof(EmailID), new TextBox { Text = EmailID.ToString() }); _privateObject.SetField(nameof(EmailAddress), new TextBox { Text = _emailAddress }); _privateObject.SetField(Title, new TextBox { Text = Title }); _privateObject.SetField(nameof(FirstName), new TextBox { Text = FirstName }); _privateObject.SetField(nameof(LastName), new TextBox { Text = LastName }); _privateObject.SetField(nameof(FullName), new TextBox { Text = FullName }); _privateObject.SetField(nameof(CompanyName), new TextBox { Text = CompanyName }); _privateObject.SetField(nameof(Occupation), new TextBox { Text = Occupation }); _privateObject.SetField(nameof(Address), new TextBox { Text = Address }); _privateObject.SetField(nameof(Address2), new TextBox { Text = Address2 }); _privateObject.SetField(nameof(City), new TextBox { Text = City }); _privateObject.SetField(nameof(State), new TextBox { Text = State }); _privateObject.SetField(nameof(Zip), new TextBox { Text = Zip }); _privateObject.SetField(nameof(Country), new TextBox { Text = Country }); _privateObject.SetField(nameof(Voice), new TextBox { Text = Voice }); _privateObject.SetField(nameof(Mobile), new TextBox { Text = Mobile }); _privateObject.SetField(nameof(Fax), new TextBox { Text = Fax }); _privateObject.SetField(nameof(Website), new TextBox { Text = Website }); _privateObject.SetField(nameof(Age), new TextBox { Text = Age }); _privateObject.SetField(nameof(Income), new TextBox { Text = Income }); _privateObject.SetField(nameof(Gender), new TextBox { Text = Gender }); _privateObject.SetField(nameof(User1), new TextBox { Text = User1 }); _privateObject.SetField(nameof(User2), new TextBox { Text = User2 }); _privateObject.SetField(nameof(User3), new TextBox { Text = User3 }); _privateObject.SetField(nameof(User4), new TextBox { Text = User4 }); _privateObject.SetField(nameof(User5), new TextBox { Text = User5 }); _privateObject.SetField(nameof(User6), new TextBox { Text = User6 }); _privateObject.SetField(nameof(UserEvent1), new TextBox { Text = UserEvent1 }); _privateObject.SetField(nameof(UserEvent2), new TextBox { Text = UserEvent2 }); _privateObject.SetField(nameof(Password), new TextBox { Text = Password }); _privateObject.SetField(nameof(BirthDate), new TextBox { Text = BirthDate }); _privateObject.SetField(nameof(UserEvent1Date), new TextBox { Text = UserEvent1Date }); _privateObject.SetField(nameof(UserEvent2Date), new TextBox { Text = UserEvent2Date }); _privateObject.SetField(nameof(FormatTypeCode), FormatTypeCode); _privateObject.SetField(nameof(FormatTypeCode), FormatTypeCode); _privateObject.SetField(nameof(SubscribeTypeCode), SubscribeTypeCode); }
protected void Page_Load(object sender, EventArgs e) { EmailID.Focus(); }
private bool FormValidation() { string ValidatingEmailID = txtEmail.Text.Trim(); if (ObjUtil.IsControlTextEmpty(txtUserName)) { clsUtility.ShowInfoMessage("Enter UserName.", clsUtility.strProjectTitle); txtUserName.Focus(); return(false); } else if (ObjUtil.IsControlTextEmpty(txtEmail)) { clsUtility.ShowInfoMessage("Enter E-Mail Address.", clsUtility.strProjectTitle); txtEmail.Focus(); return(false); } else if (!ObjUtil.ValidateEmail(ValidatingEmailID)) { clsUtility.ShowInfoMessage("Enter Valid E-Mail Address.", clsUtility.strProjectTitle); txtEmail.Focus(); return(false); } else if (ObjUtil.IsControlTextEmpty(cmbSecurity)) { clsUtility.ShowInfoMessage("Select Security question for password retrival.", clsUtility.strProjectTitle); cmbSecurity.Focus(); return(false); } else if (ObjUtil.IsControlTextEmpty(txtAsnwer)) { clsUtility.ShowInfoMessage("Enter Security's question.", clsUtility.strProjectTitle); txtAsnwer.Focus(); return(false); } else { dt = ObjDAL.GetDataCol(clsUtility.DBName + ".dbo.UserManagement", "[UserName],[SecurityQuestion],[Answer],[Password],EmailID", "UserName='******'", null); if (ObjUtil.ValidateTable(dt)) { string SecurityQuestion, Answer, Password, EmailID; SecurityQuestion = dt.Rows[0]["SecurityQuestion"].ToString(); Answer = ObjUtil.Decrypt(dt.Rows[0]["Answer"].ToString(), true); Password = dt.Rows[0]["Password"].ToString(); EmailID = dt.Rows[0]["EmailID"].ToString(); if (SecurityQuestion == cmbSecurity.SelectedItem.ToString() && Answer.ToLower() == txtAsnwer.Text.ToLower() && EmailID.ToLower() == txtEmail.Text.ToLower()) { txtRetrivePassword.Text = ObjUtil.Decrypt(Password, true); } else { clsUtility.ShowInfoMessage("Entered details is not matching.", clsUtility.strProjectTitle); return(false); } } else { clsUtility.ShowInfoMessage("Entered UserName or EmailID is not exist.", clsUtility.strProjectTitle); return(false); } return(true); } }
private void SetupControls() { FormatTypeCode.Items.Add(new ListItem(nameof(FormatTypeCode), nameof(FormatTypeCode))); var gender = new DropDownList(); gender.Items.Add(new ListItem(nameof(Gender), Gender)); _privateObject.SetField("_emailId", EmailID.ToString()); _privateObject.SetField("_groupId", GroupID.ToString()); _privateObject.SetField(nameof(EmailAddress), new TextBox { Text = EmailAddress }); _privateObject.SetField(nameof(Title), new TextBox { Text = Title }); _privateObject.SetField(nameof(FirstName), new TextBox { Text = FirstName }); _privateObject.SetField(nameof(LastName), new TextBox { Text = LastName }); _privateObject.SetField(nameof(FullName), new TextBox { Text = FullName }); _privateObject.SetField(nameof(CompanyName), new TextBox { Text = CompanyName }); _privateObject.SetField(nameof(Occupation), new TextBox { Text = Occupation }); _privateObject.SetField(nameof(Address), new TextBox { Text = Address }); _privateObject.SetField(nameof(Address2), new TextBox { Text = Address2 }); _privateObject.SetField(nameof(City), new TextBox { Text = City }); _privateObject.SetField(nameof(Zip), new TextBox { Text = Zip }); _privateObject.SetField(nameof(Country), new TextBox { Text = Country }); _privateObject.SetField(nameof(Voice), new TextBox { Text = Voice }); _privateObject.SetField(nameof(Mobile), new TextBox { Text = Mobile }); _privateObject.SetField(nameof(Fax), new TextBox { Text = Fax }); _privateObject.SetField(nameof(Website), new TextBox { Text = Website }); _privateObject.SetField(nameof(Age), new TextBox { Text = Age }); _privateObject.SetField(nameof(Income), new TextBox { Text = Income }); _privateObject.SetField(nameof(Gender), gender); _privateObject.SetField(nameof(User1), new TextBox { Text = User1 }); _privateObject.SetField(nameof(User2), new TextBox { Text = User2 }); _privateObject.SetField(nameof(User3), new TextBox { Text = User3 }); _privateObject.SetField(nameof(User4), new TextBox { Text = User4 }); _privateObject.SetField(nameof(User5), new TextBox { Text = User5 }); _privateObject.SetField(nameof(User6), new TextBox { Text = User6 }); _privateObject.SetField(nameof(UserEvent1), new TextBox { Text = UserEvent1 }); _privateObject.SetField(nameof(UserEvent2), new TextBox { Text = UserEvent2 }); _privateObject.SetField(nameof(BirthDate), new TextBox { Text = BirthDate }); _privateObject.SetField(nameof(UserEvent1Date), new TextBox { Text = UserEvent1Date }); _privateObject.SetField(nameof(UserEvent2Date), new TextBox { Text = UserEvent2Date }); _privateObject.SetField(nameof(Notes), new TextBox { Text = Notes }); _privateObject.SetField(nameof(FormatTypeCode), FormatTypeCode); _privateObject.SetField(nameof(State), State); _privateObject.SetField(nameof(MessageLabel), new Label()); _privateObject.Invoke(LoadUsStatesDr); }