public static IObjectPersistor CreateObjectPersistor()
        {
            DynamicMock mock = new DynamicMock(typeof(IObjectPersistor));

            mock.SetValue("CollectionFactory", CreateCollectionFactory());

            return (IObjectPersistor)mock.Object;
        }
		public void SetUp()
		{
			_TaskTreeView = new NuGenTaskTreeView();
			_InitialCount = _TaskTreeView.Nodes.Count;
			_EventSink = new TaskTreeViewEventSink(_TaskTreeView);
			_ServiceProvider = new NuGenTaskServiceProvider();
			_XmlDoc = new XmlDocument();

			_TaskItemDescription = "Description";
			_TaskItemMock = new DynamicMock(typeof(TaskItem));
			_TaskItemMock.SetValue("Description", _TaskItemDescription);
			_TaskItem = (TaskItem)_TaskItemMock.Object;

			Assert.IsFalse(_TaskTreeView.LabelEdit);
		}