private void TestAccountFactoryResult(string element, AccountNotificationType type) { XDocument testDoc = _documents.GetEmptyDocument(element); NotificationBase result = _notificationFactory.GetTypedNotification(testDoc); Assert.IsInstanceOf<AccountNotification>(result); var account = (AccountNotification) result; Assert.AreEqual(type, account.AccountNotificationType); }
public AccountNotification(XDocument document, AccountNotificationType notificationType) : base(document) { AccountNotificationType = notificationType; }
public AccountNotification(Account account, AccountNotificationType notificationType) : base(account) { AccountNotificationType = notificationType; }