Ejemplo n.º 1
0
 public MessageB(
     Amount amount,
     Sender sender,
     CashBranchSwiftCode branchSwiftCode,
     CashBeneficiary beneficiary,
     CashSenderToReceiverInformation senderToReceiverInformation)
     : base
     (
         new TransactionNumber(),
         amount,
         new BankOperationCode(),
         sender,
         new HeadSwiftCode(),
         branchSwiftCode,
         beneficiary,
         new CashPaymentInformation(),
         new ExpensesDetail(),
         senderToReceiverInformation)
 {
 }
Ejemplo n.º 2
0
        public void CashBeneficiaryTest()
        {
            try
            {
                var field = new CashBeneficiary(
                    name1: new NameWithHieroglyph("name1", "1000", string.Empty),
                    name2: new NameWithHieroglyph("name2", "2000", string.Empty),
                    name3: new NameWithHieroglyph("name3", "3000", string.Empty),
                    name4: new NameWithHieroglyph("name4", "4000", string.Empty),
                    address: new AddressData("11", "Улица такая-то", "Иваново", "RUS"),
                    passport: new PassportData("", "123456789012345", Enums.Country.CHN)
                    );

                string result, message;
                Assert.IsTrue(field.Check(out result, out message));
            }
            catch (Exception e)
            {
                Assert.Fail(e.ToString());
            }
        }