private BankTransferWroclaw FillWroclawBankEntity(string entry) { BankTransferWroclaw newBankTrasfer = new BankTransferWroclaw(); if (_separator == null) throw new Exception("There is no set separator!"); var myEntries = entry.Split(_separator); newBankTrasfer.AccountNumber = Convert.ToInt32(myEntries[0]); newBankTrasfer.DestinationAddress = myEntries[1]; newBankTrasfer.DestinationName = myEntries[2]; newBankTrasfer.DestinyBank = myEntries[3]; newBankTrasfer.IsTransferSuccessful = Convert.ToBoolean(myEntries[4]); newBankTrasfer.SourceBank = myEntries[5]; newBankTrasfer.TransactionTime = Convert.ToDateTime(myEntries[6]); return newBankTrasfer; }
private BankTransferWroclaw FillWroclawBankEntity(string entry) { BankTransferWroclaw newBankTrasfer = new BankTransferWroclaw(); if (_separator == null) { throw new Exception("There is no set separator!"); } var myEntries = entry.Split(_separator); newBankTrasfer.AccountNumber = Convert.ToInt32(myEntries[0]); newBankTrasfer.DestinationAddress = myEntries[1]; newBankTrasfer.DestinationName = myEntries[2]; newBankTrasfer.DestinyBank = myEntries[3]; newBankTrasfer.IsTransferSuccessful = Convert.ToBoolean(myEntries[4]); newBankTrasfer.SourceBank = myEntries[5]; newBankTrasfer.TransactionTime = Convert.ToDateTime(myEntries[6]); return(newBankTrasfer); }