public void GetStreamingUserTimeline() { StreamingOptions options = new StreamingOptions { User = m_user, Follow = "sebatestapi" }; try { StreamingEndpoint streamingService = new StreamingEndpoint(); int count = 0; foreach (Status status in streamingService.GetStreamingStatus(options)) { System.Diagnostics.Debug.Write(status); count++; if (count == 1) { break; } } } catch (Exception ex) { Assert.True(false, Util.ExceptionMessage(ex)); } }
void Execute(StreamingOptions options) { try { StreamingEndpoint streamingFilter = new StreamingEndpoint(); int count = 0; foreach (Status status in streamingFilter.GetStreamingStatus(options)) { System.Diagnostics.Debug.WriteLine(status); count++; if (count == 5) { break; } } } catch (Exception ex) { Assert.True(false, Util.ExceptionMessage(ex)); } }