示例#1
0
        public void girocode_generator_can_generate_payload_minimal()
        {
            var iban   = "DE33100205000001194700";
            var bic    = "BFSWDE33BER";
            var name   = "Wikimedia Fördergesellschaft";
            var amount = 10.00m;

            var generator = new PayloadGenerator.Girocode(iban, bic, name, amount);

            generator
            .ToString()
            .ShouldBe("BCD\n001\n2\nSCT\nBFSWDE33BER\nWikimedia Fördergesellschaft\nDE33100205000001194700\nEUR10.00\n\n\n\n");
        }
示例#2
0
        public void girocode_generator_should_fill_amount_decimals()
        {
            var iban   = "DE33100205000001194700";
            var bic    = "BFSW DE 33 BER";
            var name   = "Wikimedia Fördergesellschaft";
            var amount = 12m;
            var remittanceInformation   = "Donation to Wikipedia.";
            var purposeOfCreditTransfer = "1234";
            var messageToGirocodeUser   = "******";

            var generator = new PayloadGenerator.Girocode(iban, bic, name, amount, remittanceInformation,
                                                          PayloadGenerator.Girocode.TypeOfRemittance.Unstructured, purposeOfCreditTransfer, messageToGirocodeUser);

            generator
            .ToString()
            .ShouldBe("BCD\n001\n2\nSCT\nBFSWDE33BER\nWikimedia Fördergesellschaft\nDE33100205000001194700\nEUR12.00\n1234\n\nDonation to Wikipedia.\nThanks for using Girocode");
        }