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