private void PermanentAddress_Enter(object sender, EventArgs e) { if (PermanentAddress.Text.Equals("Permanent Address")) { PermanentAddress.Clear(); } }
public void PopulateAndSubmit() { UserName.SendKeys("Miller John"); UserEmail.SendKeys("*****@*****.**"); CurrentAddress.SendKeys("Brasov, Str. 13 Dec"); PermanentAddress.SendKeys("Brasov, Str. 13 Dec"); Submit.Click(); }
public override int GetHashCode() { return (FirstName.GetHashCode() ^ MiddleName.GetHashCode() ^ LastName.GetHashCode() ^ ID.GetHashCode() ^ PermanentAddress.GetHashCode() ^ Phone.GetHashCode() ^ Email.GetHashCode() ^ Payments.GetHashCode() ^ CustomerType.GetHashCode()); }
public override int GetHashCode() { return(FirstName.GetHashCode() ^ MiddleName.GetHashCode() ^ LastName.GetHashCode() ^ SSN.GetHashCode() ^ PermanentAddress.GetHashCode() ^ MobilePhoneNr.GetHashCode() ^ Email.GetHashCode() ^ Course.GetHashCode() ^ Speciality.GetHashCode() ^ University.GetHashCode() ^ Faculty.GetHashCode()); }
public override int GetHashCode() { unchecked { var hashCode = (FirstName != null ? FirstName.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (MiddleName != null ? MiddleName.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (LastName != null ? LastName.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Id != null ? Id.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (PermanentAddress != null ? PermanentAddress.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (MobilePhone != null ? MobilePhone.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Email != null ? Email.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (int)CustomerType; return(hashCode); } }
public EA_POM Create_Appoinment() { Web_Driver.ngWebDriver.WaitForAngular(); Web_Driver.driver.Navigate().Refresh(); Apponitment_Tab.ElementAt(0).Click(); //Clicking on Create Appoinment Button Web_Driver.ngWebDriver.WaitForAngular(); Pre_Id = Previous_ID_txt.ElementAt(0).Text; int.TryParse(Pre_Id, out Previous_ID); Web_Driver.ngWebDriver.WaitForAngular(); Created_Appoinment_Button.Click(); //getting Appoinment page Url Appoinment_Page_Url = Web_Driver.driver.Url; //Clicking on CheckBox Check_Boxe.Click(); //Checking Fields are Enabled after cliking on Checkbox for (int i = 0; i < Enable_Input_Boxes.Count; i++) { if (Enable_Input_Boxes.ElementAt(i).Enabled) { Asserts.Enable_Fields(true); } if (Enable_Input_Boxes.ElementAt(i).Enabled == false) { Asserts.Enable_Fields(false); } } //passing data into Fields // pass data into representative Form Representative_First_Name.SendKeys("Usama"); Representative_First_Name.GetAttribute("value"); Representative_Last_Name.SendKeys("Sohail"); Representative_Last_Name.GetAttribute("value"); Representative_Relationship.SendKeys("Cousin"); Representative_Relationship.GetAttribute("value"); RepresentativePhoneNumber.SendKeys("(234) 678-9874"); string repres_str = RepresentativePhoneNumber.GetAttribute("value"); //Passing Agent Info AgentFirstName.Clear(); AgentFirstName.SendKeys("Ahad"); AgentFirstName.GetAttribute("value"); AgentLastName.Clear(); AgentLastName.SendKeys("Ahmed"); AgentLastName.GetAttribute("value"); AgentPhone.Clear(); AgentPhone.SendKeys("2346789874"); string str_AgentPhone = AgentPhone.GetAttribute("value"); str_AgentPhone = str_AgentPhone.Substring(str_AgentPhone.IndexOf("(")); str_AgentPhone = str_AgentPhone.Replace("(", ""); str_AgentPhone = str_AgentPhone.Replace(")", ""); str_AgentPhone = str_AgentPhone.Replace("-", ""); // Console.WriteLine(str_AgentPhone); //passing data into Benificiary Beneficiary_First_Name.SendKeys("Mujeed"); Beneficiary_First_Name.GetAttribute("value"); LastName.SendKeys("Khan"); LastName.GetAttribute("value"); EmailAddress.SendKeys("*****@*****.**"); HomePhone.SendKeys("2346789874"); HomePhone.GetAttribute("value"); PermanentAddress.SendKeys("72 house 342"); //Checking radio buttons for (int i = 0; i < Radio_Btn_list.Count; i++) { Radio_Btn_list.ElementAt(i).Click(); Console.WriteLine(Radio_Btn_list.ElementAt(i).Selected); } //Passing Data into other InitialOtherContactMethod.SendKeys("Other"); InitialOtherContactMethod.SendKeys("value"); //passing data into plan PlansRepresented.SendKeys("Plan A"); PlansRepresented.GetAttribute("value"); //passing dates AppointmentOn.SendKeys("12/10/2020"); AppointmentOn.GetAttribute("value"); AppointmentCompletedOn.SendKeys("13/10/2020"); AppointmentCompletedOn.GetAttribute("value"); //passing data into Appointment Id AgnetNPNIDNumber.SendKeys("Md-4554"); AgnetNPNIDNumber.GetAttribute("value"); //passing data into plan meetingDetails.SendKeys("Plan D"); meetingDetails.GetAttribute("value"); // Medicare Number MediCareNumber.SendKeys("Md-6783"); MediCareNumber.GetAttribute("value"); // Asserts.All_Fields_Data_Filled if (Representative_First_Name.contains("[a-zA-Z0-9]+") && RepresentativePhoneNumber.contains("[0-9]+") == true); // Asserts.All_Fields_Data_Filled(false); //Assertion On Data filled or Not if (Representative_First_Name.GetAttribute("value") == "Usama" && Representative_Last_Name.GetAttribute("value") == "Sohail" && Representative_Relationship.GetAttribute("value") == "Cousin" && AgentFirstName.GetAttribute("value") == "Ahad" && AgentLastName.GetAttribute("value") == "Ahmed" && str_AgentPhone == "234 6789874" && Beneficiary_First_Name.GetAttribute("value") == "Mujeed" && LastName.GetAttribute("value") == "Khan" && repres_str == "(234) 678-9874" && PermanentAddress.GetAttribute("value") == "72 house 342" && EmailAddress.GetAttribute("value") == "*****@*****.**" && PlansRepresented.GetAttribute("value") == "Plan A" && AppointmentOn.GetAttribute("value") == "10/12/2020" && AppointmentCompletedOn.GetAttribute("value") == "10/13/2020" && AgnetNPNIDNumber.GetAttribute("value") == "Md-4554" && MediCareNumber.GetAttribute("value") == "Md-6783") { Asserts.All_Fields_Data_Filled(true); } else { Asserts.All_Fields_Data_Filled(false); } //Assertion on Date Date_of_Appoinment = AppointmentOn.GetAttribute("value"); Date_of_Appoinment = Date_of_Appoinment.Substring(Date_of_Appoinment.IndexOf("/")); Date_of_Appoinment = Date_of_Appoinment.Replace("/", ""); // Complete Date Date_of_Appoinment_Complete = AppointmentCompletedOn.GetAttribute("value"); Date_of_Appoinment_Complete = Date_of_Appoinment_Complete.Substring(Date_of_Appoinment_Complete.IndexOf("/")); Date_of_Appoinment_Complete = Date_of_Appoinment_Complete.Replace("/", ""); int.TryParse(Date_of_Appoinment_Complete, out int Complete_Date); int.TryParse(Date_of_Appoinment, out int Start_Date); Console.WriteLine(Complete_Date); Console.WriteLine(Start_Date); if (Complete_Date > Start_Date) { Asserts.Date(true); } else { Asserts.Date(false); } //Clicking on E Sign button Genrete_Appoinment.ElementAt(0).Click(); Genrete_Appoinment_Yes_Btn.ElementAt(1).Click(); Web_Driver.ngWebDriver.WaitForAngular(); Genrete_Appoinment_Ok_Btn.ElementAt(1).Click(); Web_Driver.ngWebDriver.WaitForAngular(); Web_Driver.driver.Navigate().Refresh(); Home_Page_Url = Web_Driver.driver.Url; Console.WriteLine(Home_Page_Url); Console.WriteLine(Appoinment_Page_Url); Web_Driver.ngWebDriver.WaitForAngular(); Up_Id = Created_ID_txt.ElementAt(0).Text; int.TryParse(Up_Id, out Updated_ID); Asserts.ID_Compare(Updated_ID, Previous_ID); Console.WriteLine(Previous_ID); Console.WriteLine(Updated_ID); return(new EA_POM()); }
public dynamic Openingaccount(AccountOpening accopen) { Customer cus = new Customer(); List <AccountOpening> objacc = new List <AccountOpening>(); if (db.Customers.Any(o => o.Aadharnumber == accopen.Aadharnumber)) { return("Adhar Number Already Exists"); } else { cus.FirstName = accopen.FirstName; cus.LastName = accopen.LastName; cus.MiddleName = accopen.MiddleName; cus.FatherName = accopen.FatherName; cus.MobileNumber = accopen.MobileNumber; cus.Aadharnumber = accopen.Aadharnumber; cus.EmailID = accopen.EmailID; cus.DOB = accopen.DOB; cus.NetBankingOpted = accopen.NetBankingOpted; cus.DebitCardOpted = accopen.DebitCardOpted; db.Customers.Add(cus); db.SaveChanges(); var cust = (from c in db.Customers where c.Aadharnumber == accopen.Aadharnumber select c.CID).FirstOrDefault(); int id = 0; if (cust != null) { id = cust; } OccupationDetail occ = new OccupationDetail(); occ.CID = id; occ.Occupationtype = accopen.Occupationtype; occ.SourceofIncome = accopen.SourceofIncome; occ.GrossannualIncome = accopen.GrossannualIncome; db.OccupationDetails.Add(occ); db.SaveChanges(); ResidentialAddress res = new ResidentialAddress(); res.CID = id; res.RAddressLine1 = accopen.RAddressLine1; res.RAddressLine2 = accopen.RAddressLine2; res.RLandmark = accopen.RLandmark; res.RPincode = accopen.RPincode; res.RState = accopen.RState; res.RCity = accopen.RCity; db.ResidentialAddresses.Add(res); db.SaveChanges(); PermanentAddress perm = new PermanentAddress(); perm.CID = id; perm.PAddressLine1 = accopen.PAddressLine1; perm.PAddressLine2 = accopen.PAddressLine2; perm.PLandmark = accopen.PLandmark; perm.PPincode = accopen.PPincode; perm.PState = accopen.PState; perm.PCity = accopen.PCity; db.PermanentAddresses.Add(perm); db.SaveChanges(); } return(Request.CreateResponse(HttpStatusCode.OK, "Added Successfully")); }
public void Create(ProfileViewModel ProfileViewModel) { var Profile = new Profile { ProfileName = ProfileViewModel.ProfileName, FatherName = ProfileViewModel.FatherName, MotherName = ProfileViewModel.MotherName, DateofBirth = ProfileViewModel.DateofBirth, BirthPlace = ProfileViewModel.BirthPlace, Genderid = ProfileViewModel.Genderid, BloodGroupId = ProfileViewModel.BloodGroupId, NationalityID = ProfileViewModel.NationalityID, MaritalStatusId = ProfileViewModel.MaritalStatusId, DateofMarriage = ProfileViewModel.DateofMarriage, RegionId = ProfileViewModel.RegionId, NID = ProfileViewModel.NID, TIN = ProfileViewModel.TIN, SpouseName = ProfileViewModel.SpouseName, SpouseProfession = ProfileViewModel.SpouseProfession, MailAddress = ProfileViewModel.MailAddress, ContactNumber = ProfileViewModel.ContactNumber, EmergencyContactNumber = ProfileViewModel.EmergencyContactNumber, PassportNumber = ProfileViewModel.PassportNumber, DrivingLicenceNumber = ProfileViewModel.DrivingLicenceNumber, Hobby = ProfileViewModel.Hobby, CreateBy = ProfileViewModel.CreateBy, CreateDate = ProfileViewModel.CreateDate, UpdateBy = ProfileViewModel.UpdateBy, UpdateDate = ProfileViewModel.UpdateDate, ImagePath = ProfileViewModel.ImagePath }; var PressentAddress = new PressentAddress { ProfileId = ProfileViewModel.ProfileId, PresentAddressFull = ProfileViewModel.PresentAddressFull, PrePostOfficeId = ProfileViewModel.PrePostOfficeId, PrePoliceStationId = ProfileViewModel.PrePoliceStationId, PreDistrictId = ProfileViewModel.PreDistrictId, PreDivisionId = ProfileViewModel.PreDivisionId, PreCountryId = ProfileViewModel.PreCountryId }; var PermanentAddress = new PermanentAddress { ProfileId = ProfileViewModel.ProfileId, PermanentAddressFull = ProfileViewModel.PermanentAddressFull, PerPostOfficeId = ProfileViewModel.PerPostOfficeId, PerPoliceStationId = ProfileViewModel.PerPoliceStationId, PerDistrictId = ProfileViewModel.PerDistrictId, PerDivisionId = ProfileViewModel.PerDivisionId, PerCountryId = ProfileViewModel.PerCountryId }; unitOfWork.ProfileRepository.Insert(Profile); unitOfWork.PressentAddressRepository.Insert(PressentAddress); unitOfWork.PermanentAddressRepository.Insert(PermanentAddress); unitOfWork.Save(); }
public override int GetHashCode() { return(FirstName.GetHashCode() ^ MiddleName.GetHashCode() ^ LastName.GetHashCode() ^ Ssn.GetHashCode() ^ PermanentAddress.GetHashCode() ^ Email.GetHashCode() ^ University.GetHashCode() ^ Faculty.GetHashCode() ^ Specialty.GetHashCode() ^ Curs.Nume.GetHashCode()); }
public override int GetHashCode() { return(SSN.GetHashCode() ^ PermanentAddress.GetHashCode()); }
private void PermanentAddress_Click(object sender, EventArgs e) { PermanentAddress.Clear(); }