Esempio n. 1
0
        public void Should_MemberShipPaymnet_SendMail()
        {
            RulesContext obj = new RulesContext(new MemberShipPayment());

            obj.Process();
            Assert.IsNotNull(obj);
        }
Esempio n. 2
0
        public void Should_BookPayment_GenerateCommission()
        {
            RulesContext obj = new RulesContext(new BookPayment());

            obj.Process();
            Assert.IsNotNull(obj);
        }
Esempio n. 3
0
        public void Should_BookPayment_DuplicateSlip()
        {
            RulesContext obj = new RulesContext(new BookPayment());

            obj.Process();
            Assert.IsNotNull(obj);
        }
Esempio n. 4
0
        public void Should_GeneratePackaginSlip_PhysicalPayment()
        {
            RulesContext obj = new RulesContext(new PhysicalPayment());

            obj.Process();
            Assert.IsNotNull(obj);
        }
Esempio n. 5
0
        public void Should_Create_VideoPayment()
        {
            RulesContext obj = new RulesContext(new VideoPayment());

            obj.Process();
            Assert.IsNotNull(obj);
        }
Esempio n. 6
0
        public void Should_Create_UpgradeMemberShip()
        {
            RulesContext obj = new RulesContext(new UpgradeMemberShip());

            obj.Process();
            Assert.IsNotNull(obj);
        }
Esempio n. 7
0
        static void Main(string[] args)
        {
            var context = new RulesContext();

            var objA = new A();
            var objB = new B();

            context.AddRule <A>(new Rule <A>(objA));
            context.AddRule <B>(new Rule <B>(objB));

            Console.WriteLine(context.CanIRead <A>(objA));
            Console.WriteLine(context.CanIRead <B>(objB));

            Console.ReadKey();
        }
Esempio n. 8
0
 public RulesStore(RulesContext context)
     : base(context)
 {
 }
Esempio n. 9
0
        public void Should_Crerate_RulesContext()
        {
            RulesContext rc = new RulesContext(new BookPayment());

            Assert.IsNotNull(rc);
        }