public void Bus_rules_Engine_Should_Generate_FreeVideoSlip(int Order_num) { //Arrange Console.WriteLine("Entering Payment Transaction"); DataSetup Setup = new DataSetup(); Transaction Trans = new Transaction(Order_num); //Act bool result = Trans.Trans_status; //Assert Assert.AreEqual(result, true); Console.WriteLine("Bus_rules_Engine_Should_Generate_FreeVideoSlip" + result); }
public void Bus_rules_Engine_Send_Email_Membership_Activation_Upgrade(int Order_num) { //Arrange Console.WriteLine("Entering Payment Transaction"); DataSetup Setup = new DataSetup(); Transaction Trans = new Transaction(Order_num); //Act bool result = Trans.Trans_status; //Assert Assert.AreEqual(result, true); Console.WriteLine("Bus_rules_Engine_Send_Email_Membership_Activation_Upgrade" + result); }
public void Bus_rules_Engine_Invalid_Order_Number(int Order_num) { //Arrange Console.WriteLine("Entering Payment Transaction"); DataSetup Setup = new DataSetup(); Transaction Trans = new Transaction(Order_num); //Act bool result = Trans.Trans_status; //Assert Assert.AreEqual(result, true); Console.WriteLine("Bus_rules_Engine_Invalid_Order_Number" + result); }
public void Bus_rules_Engine_Commission_Pymnt_For_Book_Physical_Product(int Order_num) { //Arrange Console.WriteLine("Entering Payment Transaction"); DataSetup Setup = new DataSetup(); Transaction Trans = new Transaction(Order_num); //Act bool result = Trans.Trans_status; //Assert Assert.AreEqual(result, true); Console.WriteLine("Bus_rules_Engine_Commission_Pymnt_For_Book_Physical_Product" + result); }
public ConsoleMenu() { string Option1; do { Displaymenu(); Option1 = Console.ReadLine(); //Option1 = Convert.ToInt32(val); Console.WriteLine("You selected option -> " + Option1); switch (Option1) { case "1": DataSetup setup1 = new DataSetup(); Console.ReadKey(); break; case "2": Transaction trans = new Transaction(); Console.ReadKey(); break; case "3": Console.ReadKey(); break; default: Console.WriteLine("No function defined"); Console.ReadKey(); break; } //Console.ReadLine(); Console.WriteLine("! ===== XYZ Company ===== ! "); Console.WriteLine("! ===== Supply Chain Management and Logistics ===== ! "); Console.WriteLine("! ===== Business Rules Engine ===== ! "); Console.WriteLine("Choose an option - 1 -> Setup ; 2 -> Payment Transaction ; 3 -> Exit "); Option1 = Console.ReadLine(); //Option1 = Convert.ToInt32(val); Console.WriteLine("You selected option -> " + Option1); } while (!(Option1.Equals("3"))); }