public void Should_MemberShipPaymnet_SendMail() { RulesContext obj = new RulesContext(new MemberShipPayment()); obj.Process(); Assert.IsNotNull(obj); }
public void Should_BookPayment_GenerateCommission() { RulesContext obj = new RulesContext(new BookPayment()); obj.Process(); Assert.IsNotNull(obj); }
public void Should_BookPayment_DuplicateSlip() { RulesContext obj = new RulesContext(new BookPayment()); obj.Process(); Assert.IsNotNull(obj); }
public void Should_GeneratePackaginSlip_PhysicalPayment() { RulesContext obj = new RulesContext(new PhysicalPayment()); obj.Process(); Assert.IsNotNull(obj); }
public void Should_Create_VideoPayment() { RulesContext obj = new RulesContext(new VideoPayment()); obj.Process(); Assert.IsNotNull(obj); }
public void Should_Create_UpgradeMemberShip() { RulesContext obj = new RulesContext(new UpgradeMemberShip()); obj.Process(); Assert.IsNotNull(obj); }
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(); }
public RulesStore(RulesContext context) : base(context) { }
public void Should_Crerate_RulesContext() { RulesContext rc = new RulesContext(new BookPayment()); Assert.IsNotNull(rc); }