public void EnteringAreadyUsedEmail() { var account = new AccountCreation(); account.Initialize(); account.EnteringAlreadyUsedEmail(); Assert.IsTrue(account.EnteringAlreadyUsedEmail()); account.DriverStop(); }
private void frmAccountCreation_Load(object sender, EventArgs e) { MyCommon = new CommonOperations(Program.AccountStatic.LoggingAsLocal); MyAccount = new AccountCreation(Program.AccountStatic.LoggingAsLocal); panel1.Top = (this.Height - panel1.Height) / 2; panel1.Left = (this.Width - panel1.Width) / 2; InitializeScreen(); panel7.Enabled = false; panel8.Enabled = false; LoadExistingAccount(); LoadExtAccountInHiaraky(); }
public void SetUp() { Initialize(); Driver.Navigate().GoToUrl("http://automationpractice.com/index.php"); home = new HomePage(Driver); accountPage = new AccountCreation(Driver); user = FormFactory.Create(); createAcccountEmail = new CreateAcccountEmailPage(Driver); NavigateToForm(); }
public void Registration_NonCAPTE() { CandidateHome page = new CandidateHome(driver); page.ClickCreateAccountLink(); AccountCreation page2 = new AccountCreation(driver); //page2.VerifyPage(); driver.CreateNonCAPTEUser("bob jones"); }
//Populate the script lists here. Follow the example on how to add to a list #region Populate Tests /// <summary> /// Use this method to populate the lists. They are already set to be selected from the /// CycleScripts method and no other work is required. /// </summary> public override void PopulateLists() { SignIn.Clear(); AccountCreation.Clear(); Registration.Clear(); SoftwareUpdates.Clear(); Navigation.Clear(); MapUpdates.Clear(); base.PopulateLists(); //**below is a sample of how to add in a test. Simply add in the name of the test in replace of Connect_SignIn //SignIn.Add(new Connect_SignIn(base.baseURL, base.webdriver, base.verificationErrors)); // SignIn.Add(new prototype(base.baseURL, base.webdriver, base.verificationErrors)); //This Test was to investigate Selenium RC - Webdriver opted for due to usability/port setting issues/future support. Navigation.Add(new Buy_PurchaseTest(base.baseURL, base.webdriver, base.verificationErrors)); }
public string CreateWishlist(int coupleId, AccountCreation request) { string uniqueCode = Guid.NewGuid().ToString().Substring(0, 8).ToUpper(); sql = "CREATE_RECORD_LIST"; parameters = new Dictionary <string, object> { { "@code", uniqueCode }, { "@coupleId", coupleId }, { "@name1", request.Name1 }, { "@name2", request.Name2 } }; ExecuteWriteSQLCommand(); return(uniqueCode); }
//Populate the script lists here. Follow the example on how to add to a list #region Populate Tests /// <summary> /// Use this method to populate the lists. They are already set to be selected from the /// CycleScripts method and no other work is required. /// </summary> public override void PopulateLists() { SignIn.Clear(); AccountCreation.Clear(); Tracker.Clear(); Registration.Clear(); SoftwareUpdates.Clear(); Blackberry.Clear(); MapUpdates.Clear(); Navigation.Clear(); base.PopulateLists(); //**below is a sample of how to add in a test. Simply add in the name of the test in replace of Connect_SignIn //SignIn.Add(new Connect_SignIn(base.baseURL, base.webdriver, base.verificationErrors)); SignIn.Add(new MyGarmin_SignIn(base.baseURL, base.webdriver, base.verificationErrors)); }
private void frmBill_Load(object sender, EventArgs e) { MyBill = new Billing(Program.AccountStatic.LoggingAsLocal); MyCommon = new CommonOperations(Program.AccountStatic.LoggingAsLocal); MyAccount = new AccountCreation(Program.AccountStatic.LoggingAsLocal); panel1.Top = (this.Height - panel1.Height) / 2; panel1.Left = (this.Width - panel1.Width) / 2; //MyAccount.LoadSupplier(cmbSupplier); //MyAccount.LoadSupplier(cmbSearchSupplier); //Edit by manjula *** Load suppliers from MRP LoadSuppliers(); MyCommon.LoadStatusComboAccount(cmbStatus, 4); EditScreen(false); }
private void frmPaymentVoucher_Load(object sender, EventArgs e) { try { MyAccount = new AccountCreation(Program.AccountStatic.LoggingAsLocal); MyCommon = new CommonOperations(Program.AccountStatic.LoggingAsLocal); MyPay = new Payment(Program.AccountStatic.LoggingAsLocal); panel4.Top = (this.Height - panel4.Height) / 2; panel4.Left = (this.Width - panel4.Width) / 2; LoadToCombo(); EnableCurrent(false); } catch (Exception ex) { MessageBox.Show(ex.Message); } }
// Create a Non-CAPTE user // Expects: Candidate Home Page to be loaded // Ends: Candidate Dashboard for the newly created user public static void CreateNonCAPTEUser(this RemoteWebDriver driver, string name) { AccountCreation createAccount = new AccountCreation(driver); //createAccount.goToAccountCreationPage(); createAccount.SelectCountryOfEducation("USA"); createAccount.selectSSN(); createAccount.TypeInSSN("123456789"); createAccount.SelectSchool("Unknown"); createAccount.SelectDegreeLevel("Associates"); createAccount.TypeInGraduationDate("1/1/2018"); string[] names = name.Split(); createAccount.TypeInLastName(names[1]); createAccount.TypeInFirstName(names[0]); }
private void frmJournal_Load(object sender, EventArgs e) { MyAccount = new AccountCreation(Program.AccountStatic.LoggingAsLocal); MyCommon = new CommonOperations(Program.AccountStatic.LoggingAsLocal); MyJournal = new Journal(Program.AccountStatic.LoggingAsLocal); IsLocalLoging = Program.AccountStatic.LoggingAsLocal; panel1.Top = (this.Height - panel1.Height) / 2; panel1.Left = (this.Width - panel1.Width) / 2; MyCommon.LoadCurrency(cmbCurrency); MyCommon.LoadStatusComboAccount(cmbPayFor, 6); string HmCur = "", HmRate = ""; string respond = MyCommon.GetHomeCurrencyAndExrate(out HmCur, out HmRate); cmbCurrency.Text = HmCur; MyCommon.LoadStatusComboAccount(cmbStatus, 4); }
public void z27_Create_New_Account_Self_Registration_8585() { AccountCreation CreateAccount = new AccountCreation(driver); CommonSection.Logout(); LoginPage.ClickSignup(); _test.Log(Status.Info, "Click Sign up link on Login Page"); CreateNewAccountobj.PopulateCreateNewUserLinkOuter(ExtractDataExcel.MasterDic_newuser["Id"], ExtractDataExcel.MasterDic_newuser["Firstname"], ExtractDataExcel.MasterDic_newuser["Lastname"]); CreateNewAccountobj.Click_SelectOrganization("Sample Organization"); CreateNewAccountobj.Click_CreateAccount(); _test.Log(Status.Info, "Click Create button after fill all mandetory fields"); HomePage.clickGetStarted(); _test.Log(Status.Info, "Click On lets get Started button"); Assert.IsTrue(HomePage.Title == "Home"); _test.Log(Status.Pass, "User Successfully Logged in"); CommonSection.Logout(); _test.Log(Status.Info, "Logout from learner"); LoginPage.LoginAs("siteadmin").WithPassword("").Login(); _test.Log(Status.Info, "Login as Admin"); }
public void UserShouldBeNavigatedTo(string pageName) { System.Threading.Thread.Sleep(3000); switch (pageName) { case "authentication": authentcation = new Authentcation(driver); Assert.AreEqual(authentcation.getAutenticationPageURL(), driver.Url); break; case "Account creation": accountCreation = new AccountCreation(driver); Assert.AreEqual(accountCreation.getAccountCreationPageUrl(), driver.Url); break; case "My Account": myAccount = new MyAccount(driver); Assert.AreEqual(myAccount.getMyAccountPageUrlPageUrl(), driver.Url); break; case "Blouses": product = new Product(driver); Assert.AreEqual(product.getCategoryPageUrl(), driver.Url); break; case "PaymentMethod": Assert.AreEqual(product.getPaymentMethodUrl(), driver.Url); break; default: Console.WriteLine("Can't find this page"); break; } }
public ActionResult <string> CreateAccount([FromBody] AccountCreation creationRequest) { return(Couple.RegisterNewCouple(creationRequest)); }
//Populate the script lists here. Follow the example on how to add to a list #region Populate Lists /// <summary> /// Use this method to populate the lists. They are already set to be selected from the /// CycleScripts method and no other work is required. /// </summary> public override void PopulateLists() { Account.Clear(); ForgotUsername.Clear(); SignIn.Clear(); AccountCreation.Clear(); Dashboard.Clear(); Navigation.Clear(); Scan.Clear(); NoScan.Clear(); TroubleShoot.Clear(); base.PopulateLists(); //MyCategory.Add(new TestCase(base.baseURL, base.webdriver, base.verificationErrors)); Navigation.Add(new Kenwood_Navigation(base.baseURL, base.webdriver, base.verificationErrors)); SignIn.Add(new Kenwood_SingInTest(base.baseURL, base.webdriver, base.verificationErrors)); SignIn.Add(new Kenwood_SignInIndicationTest(base.baseURL, base.webdriver, base.verificationErrors)); SignIn.Add(new Kenwood_SignOut_ValidationTest(base.baseURL, base.webdriver, base.verificationErrors)); AccountCreation.Add(new TheKenwood_CreateAccount_NewUserTest(base.baseURL, base.webdriver, base.verificationErrors)); AccountCreation.Add(new Kenwood_CreateAccount_ValidationTest(base.baseURL, base.webdriver, base.verificationErrors)); ForgotUsername.Add(new Kenwood_ForgotUsername_ValidationTest(base.baseURL, base.webdriver, base.verificationErrors)); Account.Add(new Kenwood_MyAccount_ValidationTest(base.baseURL, base.webdriver, base.verificationErrors)); Account.Add(new Kenwood_MyAccount_OrderHistoryTest(base.baseURL, base.webdriver, base.verificationErrors)); Account.Add(new Kenwood_MyAccount_TrafficSubscriptions_UnlockCodesTest(base.baseURL, base.webdriver, base.verificationErrors)); Account.Add(new Kenwood_MyAccount_TrafficSubscriptions_ActivateSubscriptionTest(base.baseURL, base.webdriver, base.verificationErrors)); Account.Add(new Kenwood_ActivateYourMap_Validation(base.baseURL, base.webdriver, base.verificationErrors)); Account.Add(new Kenwood_ActivateYourMap_GetUnlockCode(base.baseURL, base.webdriver, base.verificationErrors)); NoScan.Add(new Kenwood_NoScanSD_CheckAddToCart_TrafficService_UserNotLogged_Validation(base.baseURL, base.webdriver, base.verificationErrors)); //NoScan.Add(new Kenwood_NoScanSD_CheckDeliveryOptions_Validation(base.baseURL, base.webdriver, base.verificationErrors)); //not working in FF to ID missing elements. NoScan.Add(new Kenwood_NoScanSD_CheckTheSoftwareUpdates(base.baseURL, base.webdriver, base.verificationErrors)); NoScan.Add(new Kenwood_NoScanSD_CheckTrafficServices(base.baseURL, base.webdriver, base.verificationErrors)); NoScan.Add(new Kenwood_NoScanSD_CheckLatestMapForKenwood(base.baseURL, base.webdriver, base.verificationErrors)); NoScan.Add(new Kenwood_NoScanSD_OtherRegion_CheckTheSoftwareUpdates(base.baseURL, base.webdriver, base.verificationErrors)); NoScan.Add(new Kenwood_NoScanSD_OtherRegion_CheckLatestMapForKenwood(base.baseURL, base.webdriver, base.verificationErrors)); //NoScan.Add(new Kenwood_NoScanSD_CheckShippingAddress_Validation(base.baseURL, base.webdriver, base.verificationErrors)); //Not working in FF cannot ID NoScan.Add(new Kenwood_NoScanSD_CheckAddToCart_TrafficService_ExternalTrafficRec_CancelPressed(base.baseURL, base.webdriver, base.verificationErrors)); NoScan.Add(new Kenwood_NoScanSD_CheckAddToCart_TrafficService_CancelPressed(base.baseURL, base.webdriver, base.verificationErrors)); NoScan.Add(new Kenwood_NoScanSD_CheckShoppingCart_ForATrafficServcie_TryToUpdate(base.baseURL, base.webdriver, base.verificationErrors)); NoScan.Add(new Kenwood_NoScanSD_CheckShoppingCart_ForATrafficServcie_ContinueShopping(base.baseURL, base.webdriver, base.verificationErrors)); //NoScan.Add(new Kenwood_NoScanSD_CheckShoppingCart_ForATrafficServcie_ShippingValidation(base.baseURL, base.webdriver, base.verificationErrors)); //Not working in FF and cannot ID Scan.Add(new Kenwood_ScanSD_CheckAddToCart_TrafficService_DeviceAlreadyRegisteredToAnotherUser(base.baseURL, base.webdriver, base.verificationErrors)); Scan.Add(new Kenwood_ScanSD_CheckAddToCart_TrafficService_DeviceHasOnlyTrafficReceiveId(base.baseURL, base.webdriver, base.verificationErrors)); Scan.Add(new Kenwood_ScanSD_CheckLatestMap_DeviceRequieresUpdates_DNX9980_Validation(base.baseURL, base.webdriver, base.verificationErrors)); Scan.Add(new Kenwood_ScanSD_CheckLatestMap_DeviceRequieresUpdates_DNX7180_Validation(base.baseURL, base.webdriver, base.verificationErrors)); Scan.Add(new Kenwood_ScanSD_CheckShoppingCart_ForALatestMap_TryToUpdate(base.baseURL, base.webdriver, base.verificationErrors)); Scan.Add(new Kenwood_ScanSD_CheckShoppingCart_ForALatestMap_ContinueShopping(base.baseURL, base.webdriver, base.verificationErrors)); Scan.Add(new Kenwood_ScanSD_CheckShoppingCart_ForALatestMap_UserNotLogged_ShippingValidation(base.baseURL, base.webdriver, base.verificationErrors)); Scan.Add(new Kenwood_ScanSD_CheckShippingAddress_UpdateDetails_BackCart(base.baseURL, base.webdriver, base.verificationErrors)); Scan.Add(new Kenwood_ScanSD_CheckBillingAddress_Validation(base.baseURL, base.webdriver, base.verificationErrors)); Scan.Add(new Kenwood_ScanSD_PaymentInformation_Validation(base.baseURL, base.webdriver, base.verificationErrors)); Scan.Add(new Kenwood_ScanSD_WL_PaymentInfo_check(base.baseURL, base.webdriver, base.verificationErrors)); Scan.Add(new Kenwood_ScanSD_CheckMediaScanValidation(base.baseURL, base.webdriver, base.verificationErrors)); Scan.Add(new Kenwood_ScanSD_CheckTheSoftwareUpdates_FirmwareValidation(base.baseURL, base.webdriver, base.verificationErrors)); Scan.Add(new Kenwood_ScanSD_CheckRealTrafficSubscription(base.baseURL, base.webdriver, base.verificationErrors)); Scan.Add(new Kenwood_ScanSD_CheckTrafficServicesForKenwood(base.baseURL, base.webdriver, base.verificationErrors)); Scan.Add(new Kenwood_ScanSD_CheckLatestMapForKenwood(base.baseURL, base.webdriver, base.verificationErrors)); Scan.Add(new Kenwood_Model(base.baseURL, base.webdriver, base.verificationErrors)); Dashboard.Add(new Kenwood_OrderSummary_check(base.baseURL, base.webdriver, base.verificationErrors)); TroubleShoot.Add(new Kenwood_CheckEach_NA_DeviceType_fortheProductUpdates(base.baseURL, base.webdriver, base.verificationErrors)); Dashboard.Add(new Kenwood_CheckEach_EU_DeviceType_fortheProductUpdates(base.baseURL, base.webdriver, base.verificationErrors)); Dashboard.Add(new Kenwood_CheckEach_Other_DeviceType_fortheProductUpdates(base.baseURL, base.webdriver, base.verificationErrors)); }
public AccountCreationMenuEventWiring(AccountCreationMenu accountCreationMenu, LoginMenu loginMenu, AccountCreation accountCreation, WaitScreen waitScreen) { //Escape was pressed accountCreationMenu.OnEscape += sender => { loginMenu.Open(); accountCreationMenu.Close(); }; //Account creation canceled. accountCreationMenu.ChancelSelected += sender => { loginMenu.Open(); accountCreationMenu.Close(); }; //Account creation started. accountCreationMenu.CreationInformationEntered += sender => { waitScreen.Open(); waitScreen.Message = "Accounterstellung läuft..."; sender.Close(); accountCreation.StartAccountCreation(accountCreationMenu.UserName, accountCreationMenu.Password); }; //Account creation successful return to login menu accountCreation.AccountCreationSuccessful += sender => { loginMenu.UserName = accountCreationMenu.UserName; loginMenu.Password = accountCreationMenu.Password; loginMenu.Open(); accountCreationMenu.Close(); waitScreen.Close(); }; //Account creation failed. Display error. accountCreation.AccountCreationFailed += (sender, args) => { accountCreationMenu.SetErrorText(args.ReasonText); accountCreationMenu.Open(); waitScreen.Close(); }; }
public MainWindow() { InitializeComponent(); wbMailRenderer.ContextMenu = new ContextMenu(); wbMailRenderer.ResetZoom(); // Initial start of the program. Here we will check if the user already has an account or not. // v0.1 - simple check; will write a decent settings loader later //if (Properties.Settings.Default.Accounts == null || Properties.Settings.Default.Accounts.Count == 0) App.Log.Info("Checking application settings"); if (Properties.Settings.Default.Accounts == null || String.IsNullOrWhiteSpace(Properties.Settings.Default.Accounts)) { App.Log.Info("No settings found, showing the account creation window."); if (Properties.Settings.Default.Accounts == null) { //Properties.Settings.Default.Accounts = new Accounts(); //Properties.Settings.Default.Save(); } // No accounts configured yet. // Show the Account creation window var acctCreation = new AccountCreation(); acctCreation.ShowDialog(); if (acctCreation.DialogResult.HasValue && acctCreation.DialogResult.Value) { var acct = acctCreation.Account; AccountController.Account = acct; //Properties.Settings.Default.Accounts.Add(acct); //Properties.Settings.Default.Save(); } else { Application.Current.Shutdown(); Environment.Exit(0); } } else // Load the existing accounts { App.Log.Info("Application settings found, now loading."); //AccountController.Account = Properties.Settings.Default.Accounts[0]; } // Using Imap new Imap(AccountController.Account); App.Log.Info("Imap initialized."); // Now list the available folders var mailboxes = Imap.Client.List("", "*"); App.Log.Info("Mailboxes loaded."); App.Log.Debug("Number of mailboxes: " + mailboxes.Mailboxes.Count()); // Fill the list with mailboxes lstMailboxes.ItemsSource = mailboxes.Mailboxes; // Check for unread messages //CheckForUnreadMessages(); // Always make sure there is a mailbox selected if (lstMailboxes.SelectedIndex < 0) { lstMailboxes.SelectedIndex = 1; } }
private void frmLedgers_Load(object sender, EventArgs e) { MyCommon = new CommonOperations(Program.AccountStatic.LoggingAsLocal); MyAccount = new AccountCreation(Program.AccountStatic.LoggingAsLocal); MyCommon.LoadStatusComboAccount(cmbRptType, 5); }
public IList <AccountCreation> GetAccountsCreated(DateTime?startDate, DateTime?endDate, int type) { using (var context = new HsrTechContext()) { HsrTechADO connection = new HsrTechADO(context.Database.Connection.ConnectionString); var additionalFilter = String.Empty; var additionalSelectHour = "+ '-' + STR(datepart(HOUR,t1.OpenDate)) +'h'"; var additionalSelectMinute = "+ ':' +STR(datepart(MINUTE,t1.OpenDate)) + 'm'"; var additionalGroupBy = String.Empty; var additionalGroupByHour = ", STR(datepart(HOUR,t1.OpenDate))"; var additionalGroupByMinute = ", STR(datepart(MINUTE,t1.OpenDate))"; if (type == 2) { additionalFilter += additionalSelectHour; additionalGroupBy += additionalGroupByHour; } else if (type == 3) { additionalFilter += additionalSelectHour + additionalSelectMinute; additionalGroupBy += additionalGroupByHour + additionalGroupByMinute; } var dateConditional = String.Empty; if (startDate.HasValue) { dateConditional += $" where t1.OpenDate >= '{startDate.Value.ToString("yyyy-MM-dd")}'"; } if (endDate.HasValue) { dateConditional += dateConditional.Length > 0 ? " and" : " where "; dateConditional += $" t1.OpenDate <= '{endDate.Value.ToString("yyyy-MM-dd")}'"; } var query = $@" select COUNT(*) AS QUANTITY, REPLACE( STR(datepart(YEAR,t1.OpenDate)) + '-' + STR(datepart(MONTH,t1.OpenDate)) + '-' + STR(datepart(DAY,t1.OpenDate)) {additionalFilter} , ' ', '') as TIMESTAMP from BankAccount t1 {dateConditional} group by datepart(YEAR,t1.OpenDate), datepart(MONTH,t1.OpenDate), datepart(DAY,t1.OpenDate) {additionalGroupBy} "; var data = connection.ExecuteQuery(query); var listAccounts = new List <AccountCreation>(); foreach (var item in data) { var property = item as Dictionary <string, object>; var acc = new AccountCreation() { Quantity = Convert.ToInt32(property.ValueAsString("QUANTITY")), Time = property.ValueAsString("TIMESTAMP") }; listAccounts.Add(acc); } return(listAccounts); } }
public ActionResult CreationSubmittion(AccountCreation m) { //check for blank entries if (m.Email == null || m.Password == null || m.confirmPassword == null || m.Fname == null || m.Lname == null || m.Phone_Num == null) { ViewBag.EmptyFields = "Must not leave any blank. Try again."; var universities = GetAllUniversities(); m.Universities = GetSelectListItems(universities); return(View("AccountCreation", m)); } //Check lengths if (m.Phone_Num.Length > 14) { ViewBag.InvalidPhone = "Phone number too long. Try again."; var universities = GetAllUniversities(); m.Universities = GetSelectListItems(universities); return(View("AccountCreation", m)); } if (m.Email.Length > 100) { ViewBag.InvalidEmail = "Email too long. Try again."; var universities = GetAllUniversities(); m.Universities = GetSelectListItems(universities); return(View("AccountCreation", m)); } if (m.Fname.Length > 100) { ViewBag.InvalidFname = "First name too long. Try again."; var universities = GetAllUniversities(); m.Universities = GetSelectListItems(universities); return(View("AccountCreation", m)); } if (m.Lname.Length > 100) { ViewBag.InvalidLname = "Last name too long. Try again."; var universities = GetAllUniversities(); m.Universities = GetSelectListItems(universities); return(View("AccountCreation", m)); } if (m.Password.Length > 100) { ViewBag.InvalidPassword = "******"; var universities = GetAllUniversities(); m.Universities = GetSelectListItems(universities); return(View("AccountCreation", m)); } //check for matching passwords if (!m.Password.Equals(m.confirmPassword)) { ViewBag.InvalidPassword = "******"; var universities = GetAllUniversities(); m.Universities = GetSelectListItems(universities); return(View("AccountCreation", m)); } //Check for invalid email try { MailAddress mail = new MailAddress(m.Email); } catch (FormatException) { ViewBag.InvalidEmail = "This is not a valid email address. Try again."; var universities = GetAllUniversities(); m.Universities = GetSelectListItems(universities); return(View("AccountCreation", m)); } //Check for invalid phone_num - TODO need to fix to make areacode manditory Regex rg = new Regex(@"^\s*(?:\+?(\d{1,3}))?[-. (]*(\d{3})[-. )]*(\d{3})[-. ]*(\d{4})(?: *x(\d+))?\s*$"); if (!rg.IsMatch(m.Phone_Num)) { ViewBag.InvalidPhone = "This is not a valid phone number. Try again."; var universities = GetAllUniversities(); m.Universities = GetSelectListItems(universities); return(View("AccountCreation", m)); } grabFromDB DB = new grabFromDB(); //must check to see if user already exists if (DB.getUserListByEmail(m.Email).Count != 0) { ViewBag.InvalidEmail = "Email already used. Try a different one."; var universities = GetAllUniversities(); m.Universities = GetSelectListItems(universities); return(View("AccountCreation", m)); } if (DB.getUserListByPhone(m.Phone_Num).Count != 0) { ViewBag.InvalidPhone = "This phone number is already linked to an account. Please enter different one."; var universities = GetAllUniversities(); m.Universities = GetSelectListItems(universities); return(View("AccountCreation", m)); } DB.insertUser(m.Phone_Num, m.Email, m.University, m.Fname, m.Lname, m.Password); ViewBag.SuccessfullyCreated = "Your account was successfully created. Thanks for joining! Please sign in to continue."; LoginModel model = new LoginModel(); return(View("LogIn", model)); }