コード例 #1
0
 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);
 }
コード例 #2
0
 public AccountNotification(XDocument document, AccountNotificationType notificationType)
     : base(document)
 {
     AccountNotificationType = notificationType;
 }
コード例 #3
0
 public AccountNotification(Account account, AccountNotificationType notificationType)
     : base(account)
 {
     AccountNotificationType = notificationType;
 }