public ChargeWaitForReceiptStateHandler(
     ISettingManager settingManager,
     ReceiptProvider receiptProvider)
 {
     _settingManager  = settingManager;
     _receiptProvider = receiptProvider;
 }
Ejemplo n.º 2
0
 public RefundWaitForReceiptStateHandler(
     ISettingManager settingManager,
     IProcessManager processManager,
     ReceiptProvider receiptProvider)
 {
     _processManager  = processManager;
     _settingManager  = settingManager;
     _receiptProvider = receiptProvider;
 }
Ejemplo n.º 3
0
 private bool SeeIfReceiptsAreEqual(Receipt otherReceipt)
 {
     return(ReceiptProvider.Equals(otherReceipt.ReceiptProvider) &&
            CompletedFieldsListsAreEqual(CompletedFields, otherReceipt.CompletedFields) &&
            Amount.Equals(otherReceipt.Amount));
 }