public void CanCreateInstancesOfWorkItem() { bool created = false; WorkItem wi = new TestableRootWorkItem(); WorkItemTypeCatalogService svc = wi.Services.AddNew <WorkItemTypeCatalogService, IWorkItemTypeCatalogService>(); svc.RegisterWorkItem <WorkItem>(); svc.CreateEachWorkItem <WorkItem>(wi, delegate(WorkItem item) { created = true; }); Assert.IsTrue(created); }
public void CreatingEachWorkItemCheckAssigableRight() { bool created = false; WorkItem wi = new TestableRootWorkItem(); WorkItemTypeCatalogService svc = wi.Services.AddNew <WorkItemTypeCatalogService, IWorkItemTypeCatalogService>(); svc.RegisterWorkItem <MockWorkItem>(); svc.CreateEachWorkItem <ITest>(wi, delegate(ITest item) { created = true; }); Assert.IsTrue(created); }