public void ShouldAllowWorkItemClassWithHyphen() { WorkStep.New("/step").UpdateWorkItemClass("class-1"); }
public void ShouldNotAllowWorkItemClassWithSpace() { AssertUtils.AssertThrows <ArgumentException>( () => WorkStep.New("/step").UpdateWorkItemClass("class 1") ); }
public void ShouldNotAllowEmptyWorkItemClass() { AssertUtils.AssertThrows <ArgumentException>( () => WorkStep.New("/step").UpdateWorkItemClass(string.Empty) ); }
public void ShouldNotAllowNullWorkItemClass() { AssertUtils.AssertThrows <ArgumentNullException>( () => WorkStep.New("/step").UpdateWorkItemClass(null) ); }
public void ShouldOnlyCreateWorkStepsWithPathStartingWithSlash() { AssertUtils.AssertThrows <ArgumentException>( () => WorkStep.New("step") ); }
public WhiskWorkSynchronizationAgent(IWhiskWorkRepository repository, Converter <IEnumerable <WorkItem>, IEnumerable <SynchronizationEntry> > mapper, string beginStepPath) { _repository = repository; _beginStep = WorkStep.New(beginStepPath); _mapper = mapper; }