protected XMasPickList CreateTestPickList() { XMasPickList testYear = new XMasPickList(2001); Person Dad = new Person("Tom", "Gehred", new DateTime(1936,3,5), "11111111-6666-3333-4444-555555555555"); Person Mike = new Person("Mike", "Gehred", new DateTime(1954, 3, 18), "11111111-7777-3333-4444-555555555555"); Person Jim = new Person("Jim", "Gehred", new DateTime(1963, 2, 13), "11111111-8888-3333-4444-555555555555"); Person TonyI = new Person("Tony", "Ingrassia", new DateTime(1901, 3, 3), "11111111-9999-3333-4444-555555555555"); testYear.Add(new XMasPick(Dad, Mike)); testYear.Add(new XMasPick(Mike, Jim)); testYear.Add(new XMasPick(Jim, TonyI)); testYear.Add(new XMasPick(TonyI, Dad)); return testYear; }
protected XMasPickList CreateTestPickList(int year, string[] firstName) { XMasPickList testYear = new XMasPickList(year); for (int i = 0; i < firstName.GetLength(0); i++) { int index = i + 1; if (index >= firstName.GetLength(0)) index = 0; Person subject = new Person(firstName[i], "Gehred", new DateTime(1972, 7, 27), string.Format("{0}5111111-2222-3333-4444-555555555555", i)); Person recipient = new Person(firstName[index], "Gehred", new DateTime(1972, 7, 27), string.Format("5{0}111111-2222-3333-4444-555555555555", index)); testYear.Add(new XMasPick(subject, recipient)); } return testYear; }