public static YodleeAccountList Create(DateTime submittedDate, YodleeOrderDictionary dictionary) { List <YodleeAccountItem> list = dictionary.Data.Keys.Select(yodleeAccountItem => new YodleeAccountItem(yodleeAccountItem)) .ToList(); return(new YodleeAccountList(submittedDate, list)); }
public static YodleeTransactionList Create(DateTime submittedDate, YodleeOrderDictionary dictionary) { List <YodleeTransactionItem> list = (from item in dictionary.Data.Keys from bankTransaction in dictionary.Data[item] select new YodleeTransactionItem(bankTransaction)).ToList(); return(new YodleeTransactionList(submittedDate, list)); }