added test for all csv loaders

This commit is contained in:
Radu Ioan Fericean
2013-09-14 17:58:52 +03:00
parent bb22d37fc6
commit fa788103cf
6 changed files with 92 additions and 9 deletions

View File

@@ -368,6 +368,7 @@ func (csvr *CSVReader) LoadActions() (err error) {
Weight: weight,
ExpirationString: record[5],
Balance: &Balance{
Id: utils.GenUUID(),
Value: units,
Weight: minutesWeight,
SpecialPrice: value,
@@ -412,6 +413,7 @@ func (csvr *CSVReader) LoadActionTimings() (err error) {
Tag: record[2],
Weight: weight,
Timing: &RateInterval{
Years: t.Years,
Months: t.Months,
MonthDays: t.MonthDays,
WeekDays: t.WeekDays,