private BankTransfer PopulateBankTransfer(IDictionary <string, string> valuesDictionary) { var bankTransfer = new SoltysBankTransfer { SourceBank = valuesDictionary["SourceBank"], DestinationBank = valuesDictionary["DestinationBank"], Amount = Convert.ToDecimal(valuesDictionary["Amount"]), SenderName = valuesDictionary["SenderName"], ReceiverName = valuesDictionary["ReceiverName"], TransferDate = Convert.ToDateTime(valuesDictionary["TransferDate"]), Title = valuesDictionary["Title"] }; var transferHandler = SoltysTransferHandlerFactory.GetValidTransferHandler(valuesDictionary["DestinationBank"]); if (transferHandler != null) { transferHandler.SendTransfer(bankTransfer); } return(bankTransfer); }
private BankTransfer PopulateBankTransfer(IDictionary<string, string> valuesDictionary) { var bankTransfer = new SoltysBankTransfer { SourceBank = valuesDictionary["SourceBank"], DestinationBank = valuesDictionary["DestinationBank"], Amount = Convert.ToDecimal(valuesDictionary["Amount"]), SenderName = valuesDictionary["SenderName"], ReceiverName = valuesDictionary["ReceiverName"], TransferDate = Convert.ToDateTime(valuesDictionary["TransferDate"]), Title = valuesDictionary["Title"] }; var transferHandler = SoltysTransferHandlerFactory.GetValidTransferHandler(valuesDictionary["DestinationBank"]); if (transferHandler != null) { transferHandler.SendTransfer(bankTransfer); } return bankTransfer; }