Esempio n. 1
0
        public void CashBranchSwiftCodeTest()
        {
            try
            {
                var field = new CashBranchSwiftCode(ProvincialBranch.GetAllProvincialBranch(CONNECTION_STRING).First());

                string result, message;
                Assert.IsTrue(field.Check(out result, out message));
            }
            catch (Exception e)
            {
                Assert.Fail(e.ToString());
            }
        }
Esempio n. 2
0
        public void CashSenderToReceiverInformationTest()
        {
            try
            {
                var field = new CashSenderToReceiverInformation(
                    beneficiaryPhone: new PhoneData(Enums.CountryPhoneCode.CHN, "123456789"),
                    provincialBranch: ProvincialBranch.GetAllProvincialBranch(CONNECTION_STRING).First());

                string result, message;
                Assert.IsTrue(field.Check(out result, out message));
            }
            catch (Exception e)
            {
                Assert.Fail(e.ToString());
            }
        }
Esempio n. 3
0
 private MessageB GetNewB()
 {
     return(new MessageB
            (
                new Amount(100.51M),
                new Sender(
                    "SenderFirstName SenderSecondName SenderThirdName",
                    new PassportData(series: "9003", number: "623901", country: Enums.Country.RUS),
                    new AddressData(building: "1а кв.11", street: "ул. 7-я Парковая", city: "г. Москва", country: "RUS")
                    ),
                new CashBranchSwiftCode(ProvincialBranch.GetAllProvincialBranch(CONNECTION_STRING).First()),
                new CashBeneficiary(
                    name1:      new NameWithHieroglyph("BeneficiaryName1"),
                    name2:      new NameWithHieroglyph("BeneficiaryName2"),
                    name3:      new NameWithHieroglyph("BeneficiaryName3"),
                    name4:      new NameWithHieroglyph("BeneficiaryName4"),
                    address:    new AddressData(building: "111", street: "Xidan", city: "Beijing", country: "CHN"),
                    passport:   new PassportData("", "123456789012345678", Enums.Country.CHN)),
                new CashSenderToReceiverInformation(
                    beneficiaryPhone: new PhoneData(Enums.CountryPhoneCode.CHN, "1234567890"),
                    //provincialBranch: new ProvincialBranch("ProvincialBranchName", "ProvincialBranchAdderess", new SwiftCode("1234567890")))
                    provincialBranch: ProvincialBranch.GetAllProvincialBranch(CONNECTION_STRING).First())
            ));
 }