public void Init()
 {
     _tokenizerMock   = new Mock <Tokenizer>();
     _postHandlerMock = new Mock <PostHandler>(new Mock <PostRepository>().Object, new Mock <UserRepository>().Object);
     _twitterminal    = new Twitterminal(_tokenizerMock.Object, _postHandlerMock.Object);
 }
Esempio n. 2
0
        public static void Main(string[] args)
        {
            var tm = new Twitterminal(new Tokenizer(), new PostHandler(new PostRepository(), new UserRepository()));

            tm.Execute("Tony -> Oh my god!");
        }