public virtual void ImportMonthlyReturnsFile(
            string filePath)
        {
            var feeType = FeeType.GetFeeTypeForFileName(filePath);

            var citiMonthlyReturns = _citiReturnsFileReader.ReadFile(filePath);

            var returnSeries = SaveReturnSeries(feeType, citiMonthlyReturns);

            SaveMonthlyReturns(returnSeries, citiMonthlyReturns);
        }
Beispiel #2
0
 public void GetFeeTypeForFileNameShouldReturnNoneByDefault()
 {
     Assert.Equal(FeeType.GetFeeTypeForFileName(""), FeeType.None);
 }
Beispiel #3
0
 public void GetFeeTypeForFileNameShouldReturnGrossOfFeeWhenFileNameContainsGross()
 {
     Assert.Equal(FeeType.GetFeeTypeForFileName("FileNameGross"), FeeType.GrossOfFees);
 }
Beispiel #4
0
 public void GetFeeTypeForFileNameShouldReturnNetOfFeeWhenFileNameContainsNet()
 {
     Assert.Equal(FeeType.GetFeeTypeForFileName("FileNameNet"), FeeType.NetOfFees);
 }