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