public BankAccountDetails GiveAccountDetails(SingleAccountInfo info) { AccountInfoRequestFactory factory = new AccountInfoRequestFactory(); BankCommsCapsule capsule = factory.CreateBankCommunicationsCapsule(info); CommunicationsResponse resp = _selectedComms.RetrieveSelectedBankAccountDetails(capsule);//the part where magic happens AccountInfoResponseParser parser = new AccountInfoResponseParser(); BankAccountDetails details = parser.FormAccountDetails(resp); return details; }
public BankAccountDetails GiveAccountDetails(SingleAccountInfo info) { AccountInfoRequestFactory factory = new AccountInfoRequestFactory(); BankCommsCapsule capsule = factory.CreateBankCommunicationsCapsule(info); CommunicationsResponse resp = _selectedComms.RetrieveSelectedBankAccountDetails(capsule);//the part where magic happens AccountInfoResponseParser parser = new AccountInfoResponseParser(); BankAccountDetails details = parser.FormAccountDetails(resp); return(details); }