Esempio n. 1
0
        public ISerializedAccount Serialize(SerializeMethod method,
                                            DirectDebitConfiguration config)
        {
            var accountFields = config.BankAccount.GetProperties();

            return(Serialize(method, accountFields));
        }
Esempio n. 2
0
 public ISerializedAccount Serialize(SerializeMethod method, 
     DirectDebitConfiguration config)
 {
     var accountFields = config.BankAccount.GetProperties();
     return Serialize(method, accountFields);
 }
                public void Configuration()
                {
                    var configuration = new DirectDebitConfiguration();
                    configuration.BankAccount.Add(new FieldConfiguration { Field = "Number" });

                    var account = new BankAccount(BankAccountTest.NUMBER,
                            BankAccountTest.SORTCODE, BankAccountTest.NAME);

                    var serialize = account.Serialize(SerializeMethod.FixedWidth, configuration);

                    Assert.Equal(serialize.Number, serialize.Line);
                }