public void StreamData(StreamReader reader, StreamWriter writer) { KeySentiments server = new KeySentiments(); do { string inputLine = reader.ReadLine(); server.Sentiment(inputLine, writer); } while (reader.EndOfStream == false); }
public void PromptForInput(StreamWriter writer) { KeySentiments server = new KeySentiments(); do { Console.Write("Enter text <empty to quit>: "); string inputLine = Console.ReadLine(); if (inputLine == null || inputLine.Length == 0) { break; } else { server.Sentiment(inputLine, writer); } } while (true); }
public static void AssemblyInit(TestContext context) { analyzer = new KeySentiments(); }