public MonthlyReturnDtoCollectionForTests Add( MonthlyReturnDto d) { _monthlyReturnsList.Add(d); return(this); }
private MonthlyReturn CreateMonthlyReturn( MonthlyReturnDto d) { return(new MonthlyReturn() { ReturnSeriesId = d.ReturnSeriesId, MonthYear = MonthYear.CreateMonthYearFrom(d), ReturnValue = d.ReturnValue }); }
private MonthlyReturnDto CreateMonthlyReturn( ReturnSeriesDto series, CitiMonthlyReturnsDataFileRecord sourceMonthlyReturn) { var monthlyReturn = new MonthlyReturnDto(); monthlyReturn.ReturnSeriesId = series.ReturnSeriesId; monthlyReturn.Month = sourceMonthlyReturn.GetMonth(); monthlyReturn.Year = sourceMonthlyReturn.GetYear(); monthlyReturn.ReturnValue = sourceMonthlyReturn.GetDecimalValue(); return(monthlyReturn); }
public void AddMonthlyReturnDto( MonthlyReturnDto dto) { _monthlyReturnsDataGatewayStub.InsertMonthlyReturns(new [] { dto }); }