コード例 #1
0
 public ProductPaymentHandler(IProductTypeCollection productTypeCollection, IPhysicalProductProcessor physicalProductProcessor, IBookProcessor bookProcessor, IMembershipProcessor membershipProcessor)
 {
     _productTypeCollection    = productTypeCollection;
     _physicalProductProcessor = physicalProductProcessor;
     _bookProcessor            = bookProcessor;
     _membershipProcessor      = membershipProcessor;
 }
 public void Setup()
 {
     _mockPaymentSlipGenerator = new Mock <IPaymentSlipGenerator>();
     _physicalProductProcessor = new PhysicalProductProcessor(_mockPaymentSlipGenerator.Object);
 }