private static void RunUserProfileExport() { var io = new IoHelper(DirEventsAll, DirMicroCommits); var helper = new UserProfileExportHelper(); new UserProfileExportRunner(io, helper).Export(DirEventsAll); }
public void Setup() { _io = Mock.Of <IIoHelper>(); _helper = Mock.Of <UserProfileExportHelper>(); _sut = new UserProfileExportRunner(_io, _helper); _userProfileEvent = new UserProfileEvent { TriggeredAt = DateTime.Now, Id = "some id to make it non default" }; Mock.Get(_io).Setup(io => io.FindExports()).Returns(Lists.NewList("a.zip", "b.zip")); Mock.Get(_io).Setup(io => io.ReadEvents("a.zip")).Returns(Lists.NewList(NewCommandEvent(1))); Mock.Get(_io).Setup(io => io.ReadEvents("b.zip")).Returns(Lists.NewList(_userProfileEvent)); }