public void Should_Generate_Video_PackagingSlip() { //Arrange //Act bool isSuccessed = ProcessPaymentFactory.ProcessPayments(PaymentType.Video); //Assert Assert.True(isSuccessed); }
public void Should_SendEmail_For_MembershipActivity() { //Arrange //Act bool isSuccessed = ProcessPaymentFactory.ProcessPayments(PaymentType.MembershipUpgrade); //Assert Assert.True(isSuccessed); }
public void Should_Upgrade_Membership() { //Arrange //Act bool isSuccessed = ProcessPaymentFactory.ProcessPayments(PaymentType.MembershipUpgrade); //Assert Assert.True(isSuccessed); }
public void Should_Generate_Royalty_PackagingSlip_ForBook() { //Arrange //Act bool isSuccessed = ProcessPaymentFactory.ProcessPayments(PaymentType.Book); //Assert Assert.True(isSuccessed); }
public void Should_Generate_PackagingSlip_ForPhysicalProduct() { //Arrange //Act bool isSuccessed = ProcessPaymentFactory.ProcessPayments(PaymentType.PhysicalProduct); //Assert Assert.True(isSuccessed); }
static void Main(string[] args) { repeat: Console.WriteLine("Welome to the Order Payment Processing system.\n**********************************************\nPlease select type of payment (type between 1 to 5)- "); Console.WriteLine("1. Physical Products.\n2. Membership.\n3. Video."); PaymentType paymentType = GetUserInput(); Console.WriteLine($"Payment will get processed for {paymentType}"); bool IsSuccessed = ProcessPaymentFactory.ProcessPayments(paymentType); Console.WriteLine($"\n\nPayment Status - {IsSuccessed.ToString()}"); Console.WriteLine("\n\nDo you want to continue payment?(y/n)"); string result = Console.ReadLine().ToLower(); if (result == "y") { goto repeat; } else { System.Environment.Exit(0); } }