public void SingleRun() { var cust = new ProcessCustomer(); cust.Test(); }
public void Run() { var cust = new ProcessCustomer(); var ongoing = true; while (ongoing) { PrintMenu(); // Get char in lower case, skipping whitespaced chars var userInput = Console.ReadLine().ToLowerInvariant().Trim(); Console.WriteLine(" ..."); switch (userInput) { case "1": cust.ReadAll(); break; case "2": cust.Create(); break; case "3": cust.CreateAuto(1); break; case "4": cust.CreateAuto(10); break; case "5": cust.Update(); break; case "6": cust.Delete(); break; case "8": cust.WipeAllViaSql(); break; case "9": cust.ReadAllInsecure(); break; case "10": cust.Benchmark(); break; case "t": cust.Test(); break; case "q": ongoing = false; break; default: Console.WriteLine("Unknown input"); break; } } }