public void CanRemoveWorkItemState() { WorkItem wi = new TestableRootWorkItem(); MockPersistenceService svc = wi.Services.AddNew<MockPersistenceService, IStatePersistenceService>(); wi.DeleteState(); Assert.IsTrue(svc.RemoveCalled); }
public void CanRemoveWorkItemState() { WorkItem wi = new TestableRootWorkItem(); MockPersistenceService svc = wi.Services.AddNew<MockPersistenceService, IStatePersistenceService>(); wi.DeleteState(); Assert.IsTrue(svc.RemoveCalled); }