public void Process()
        {
            try
            {
                var shippingSlipResult  = _paymentSlipGenerator.GenerateShippingSlip() ? "Payment Slip generated successfully" : "Error in generating Payment Slip";
                var duplicateSlipResult = _paymentSlipGenerator.GenerateDuplicateSlip() ? "Duplicate Payment Slip generated successfully" : "Error in generating Duplicate Payment Slip";
                var comissionSlipResult = _paymentSlipGenerator.GenerateComissionSlip() ? "Comission Slip generated successfully" : "Error in generating Comission Slip";

                Console.WriteLine(shippingSlipResult);
                Console.WriteLine(comissionSlipResult);
                Console.WriteLine(duplicateSlipResult);
            }
            catch (Exception e)
            {
                Console.WriteLine(e.Message);
                throw;
            }
        }
Exemplo n.º 2
0
        public void GenerateDuplicateSlip()
        {
            var result = _paymentSlipGenerator.GenerateDuplicateSlip();

            result.Should().BeTrue();
        }