コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
        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);
        }
コード例 #4
0
        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);
        }
コード例 #5
0
        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")));
        }