public void CreateWorkItem(WorkItem newWorkItem) { var creator = new WorkItemCreator(WorkflowRepository, TimeSource); var timeStamp = TimeSource.GetTime(); creator.CreateWorkItem(newWorkItem.UpdateTimestamp(timeStamp).UpdateLastMoved(timeStamp)); }
public void CreateWorkItem(WorkItem newWorkItem) { var creator = new WorkItemCreator(WorkflowRepository, TimeSource); var timeStamp = TimeSource.GetTime(); creator.CreateWorkItem(newWorkItem.UpdateTimestamp(timeStamp).UpdateLastMoved(timeStamp)); }