public static void Setup(int testItems) { SetTestRepo(); for(int i=0;i<testItems;i++){ Posting item=new Posting(); _testRepo._items.Add(item); } }
private void SaveDragandDropPickup() { CurrentDayPickup pu = MainForm.DraggedCDP; // record the previous route // do this before we swap them // re-using the editedby column as a place to store DnD Source tag. pu.CDPEditedBy = pu.CDPDefaultRouteID; pu.CDPPreviousRouteID = pu.CDPDefaultRouteID; pu.CDPDefaultRouteID = this.Tag.ToString(); pu.CDPStation = Environment.MachineName; pu.Terminal = Properties.Settings.Default.terminal; // TODO: see how to do this... // or see if its done by the // onchanged/onchanging events??? //pu.Save(); MainForm.DraggedCDP = null; //post it int postedcount = Properties.Settings.Default.ActiveStations - 1; var job = new Posting(); // TODO: see how to do this... //job.Save(); }
public static void Setup(Posting item) { SetTestRepo(); _testRepo._items.Add(item); }