public void ShouldUpdateDominoStatus() { StubWhiskWorkAndMockDomino(); Record( () => { var bug = WorkItem.New("B2404", "/done").AddClass("cr").UpdateOrdinal(1).UpdateProperties( CreateProperties()); SetupResult.For(WhiskWorkRepository.GetWorkItems()).Return(new[] { bug }); SetupResult.For(DominoRepository.OpenTable()).Return(CreateDominoData()); DominoRepository.UpdateField("unid1", "Status", "10"); }); Playback(); }
public void ShouldUpdateResponsible() { StubWhiskWorkAndMockDomino(); var properties = CreateProperties(); properties.Add("responsible", "Some Person"); Record( () => { var currentWorkItem = WorkItem.New("B2404", "/cmsdev/analysis/inprocess").AddClass("cr").UpdateOrdinal(1). UpdateProperties(properties); SetupResult.For(WhiskWorkRepository.GetWorkItems()).Return(new[] { currentWorkItem }); SetupResult.For(DominoRepository.OpenTable()).Return(CreateDominoData()); DominoRepository.UpdateField("unid1", "CurrentPerson", "Some Person"); }); Playback(); }