private void TestPaymentFactoryResult(string element, PaymentNotificationType type)
 {
     NotificationBase result = _notificationFactory.GetTypedNotification(_documents.GetEmptyDocument(element));
     Assert.IsInstanceOf<PaymentNotification>(result);
     var paymentNotification = (PaymentNotification) result;
     Assert.AreEqual(type, paymentNotification.PaymentNotificationType);
 }
 public PaymentNotification(Account account, Transaction transaction, PaymentNotificationType type)
     : base(account)
 {
     PaymentNotificationType = type;
     Transaction = transaction;
 }
 public PaymentNotification(XDocument document, PaymentNotificationType type)
     : base(document)
 {
     PaymentNotificationType = type;
     Transaction = new Transaction(document);
 }