/// <summary> /// Checks the multiple entries of email. /// </summary> /// <param name="email1">The email1.</param> /// <param name="email2">The email2.</param> /// <param name="email3">The email3.</param> /// <param name="email4">The email4.</param> /// <returns></returns> public string checkMultipleEntriesOfEmail(string emails) { bool emailForEntry1 = userRegistrationRegex.validateEmail(emails); if (emailForEntry1 == true) { return("Entry is successful"); } else { return("Entry is not successful"); } }
/// <summary> /// Main Methode For User Input /// </summary> /// <param name="args"></param> static void Main(string[] args) { Console.WriteLine("welcome to the user registration problem"); Console.WriteLine("Enter the first name = "); string firstName = Console.ReadLine(); Console.WriteLine("Enter the last name = "); string lastName = Console.ReadLine(); Console.WriteLine("Enter the email = "); string email = Console.ReadLine(); Console.WriteLine("Enter the mobile pattern = "); string mobilePattern = Console.ReadLine(); Console.WriteLine("Enter the password = "******"Email sample validator"); EmailSamples emailSamples = new EmailSamples(); emailSamples.validateEmails(); }