private static void Product(out RuleBase _rule, out PaymentOrderType selectedPaymentoption) { selectedPaymentoption = PaymentOrderType.Product; _rule = new RuleBase(); PackingSlip _slip = _rule.Generatepackingslip("Order No:909"); Console.WriteLine("Packing slip generated"); double _agentcommision = _rule.GenerateAgentcommision(500.00); Console.WriteLine("agent commision generated for Rs {0}", _agentcommision); }
private static void Books(out RuleBase _rule, out PaymentOrderType selectedPaymentoption) { _rule = new RuleBase(); selectedPaymentoption = PaymentOrderType.Books; PackingSlip originalpackingslip = _rule.Generatepackingslip("Order:1020"); PackingSlip royality_dep = _rule.Generatepackingslip("Order:1020", true); Console.WriteLine("Packing slips generated"); double _agentcommision = _rule.GenerateAgentcommision(500.00); Console.WriteLine("agent commision generated for Rs {0}", _agentcommision); }