static void Main(string[] args) { //Physical Product Use Case var PhysicalProductPayment = new PhysicalProduct(); Console.WriteLine(PhysicalProductPayment.ApplyRules()); //Book Use case var BookPayment = new Book(); Console.WriteLine(BookPayment.ApplyRules()); //Membership use case var MembershipPayment = new Membership(); Console.WriteLine(MembershipPayment.ApplyRules("Activation")); //Video use case var VideoPayment = new Video("Learning to Ski"); Console.WriteLine(VideoPayment.ApplyRules()); Console.ReadKey(); }
public void IfPaymentIsMembershipUpgrade() { IEntity Product = new Membership(); Assert.Equal(new MembershipUpgrade().RuleImplementation(), Product.ApplyRules("Upgrade")); }