public List <Loan> GetLoans(string filePath)
        {
            ICSVWrapper <Loan> csvWrapper = new CSVWrapper <Loan>();

            var loans = csvWrapper.ReadCSV(filePath);

            return(loans);
        }
        public List <Facility> GetFacilities(string filePath)
        {
            ICSVWrapper <Facility> csvWrapper = new CSVWrapper <Facility>();

            var facilities = csvWrapper.ReadCSV(filePath);

            return(facilities);
        }
Exemple #3
0
        public List <Bank> GetBanks(string filePath)
        {
            ICSVWrapper <Bank> csvWrapper = new CSVWrapper <Bank>();

            var banks = csvWrapper.ReadCSV(filePath);

            return(banks);
        }
Exemple #4
0
        public List <Covenant> GetCovenants(string filePath)
        {
            ICSVWrapper <Covenant> csvWrapper = new CSVWrapper <Covenant>();

            var covenants = csvWrapper.ReadCSV(filePath);

            return(covenants);
        }
Exemple #5
0
        public void WriteYieldsToCSV(List <Yield> yields, string filePath)
        {
            foreach (var yield in yields)
            {
                yield.ExpectedYield = Math.Round(yield.ExpectedYield);
            }

            ICSVWrapper <Yield> csvHelper = new CSVWrapper <Yield>();

            csvHelper.WriteToCSV(yields, filePath);
        }
        public void WriteAssignmentsToCSV(List <Assignment> assignments, string filePath)
        {
            ICSVWrapper <Assignment> csvHelper = new CSVWrapper <Assignment>();

            csvHelper.WriteToCSV(assignments, filePath);
        }