예제 #1
0
        public List <Loan> GetLoans(string filePath)
        {
            ICSVWrapper <Loan> csvWrapper = new CSVWrapper <Loan>();

            var loans = csvWrapper.ReadCSV(filePath);

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

            var facilities = csvWrapper.ReadCSV(filePath);

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

            var banks = csvWrapper.ReadCSV(filePath);

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

            var covenants = csvWrapper.ReadCSV(filePath);

            return(covenants);
        }
예제 #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);
        }
예제 #6
0
        public void WriteAssignmentsToCSV(List <Assignment> assignments, string filePath)
        {
            ICSVWrapper <Assignment> csvHelper = new CSVWrapper <Assignment>();

            csvHelper.WriteToCSV(assignments, filePath);
        }