Exemplo n.º 1
0
        static void Main(string[] args)
        {
            var storageHandler = new StorageHandler();
            var userRepository = new Repository<User>();
            var parser = new ViewTopicParser();
            var p = new PhpBbLogin {Domain = "toloka.hurtom.com"};

            Console.WriteLine("Enter params to start grabbing:");
            var paramsString = Console.ReadLine();

            (new Grabber(userRepository, storageHandler, parser, p, paramsString)).Run();
        }
Exemplo n.º 2
0
 public Grabber(
     IRepository<User> userRepository, 
     StorageHandler storageHandler, 
     ViewTopicParser viewTopicParser,
     PhpBbLogin phpBbLogin,
     string commandLineParams)
 {
     UserRepository = userRepository;
     StorageHandler = storageHandler;
     ViewTopicParser = viewTopicParser;
     PhpBbLogin = phpBbLogin;
     CommandLineParams = commandLineParams;
 }