private void PopulateGeneral(AbstractExpenseItem item) { var rDate = new DateTime(random.Next(7) + 2000, random.Next(12) + 1, random.Next(28) + 1); item.ModifyAmount(RandomAmount); //item.modifyDescription(item.[GetType()]().FullName + " " + rDate.ToString()) item.ModifyDateIncurred(rDate); item.ModifyProjectCode(RandomProjectCode); }
public virtual void ModifyProjectCode(ProjectCode newCode) { ProjectCode = newCode; for (int i = 0; i < ExpenseItems.Count; i++) { AbstractExpenseItem item = (ExpenseItems[i]); item.ModifyProjectCode(m_projectCode); } }