public virtual void ImportMonthlyReturnsFile( string filePath) { var feeType = FeeType.GetFeeTypeForFileName(filePath); var citiMonthlyReturns = _citiReturnsFileReader.ReadFile(filePath); var returnSeries = SaveReturnSeries(feeType, citiMonthlyReturns); SaveMonthlyReturns(returnSeries, citiMonthlyReturns); }
public void GetFeeTypeForFileNameShouldReturnNoneByDefault() { Assert.Equal(FeeType.GetFeeTypeForFileName(""), FeeType.None); }
public void GetFeeTypeForFileNameShouldReturnGrossOfFeeWhenFileNameContainsGross() { Assert.Equal(FeeType.GetFeeTypeForFileName("FileNameGross"), FeeType.GrossOfFees); }
public void GetFeeTypeForFileNameShouldReturnNetOfFeeWhenFileNameContainsNet() { Assert.Equal(FeeType.GetFeeTypeForFileName("FileNameNet"), FeeType.NetOfFees); }