Example #1
0
        static void Main(string[] args)
        {
            log4net.Config.XmlConfigurator.Configure();
            TaxonomyCreationService.Initialize();
            ThreadPool.SetMinThreads(10, 10);

            var provider = GetProvider(args);
            var user     = UserCreationService.CreateOrUpdate("couponer", "$P$BWJW/XnJo3sQg6CNqsrt1zHYMo4H7b1");

            switch (provider)
            {
            case Provider.ShopWindow:
                Tasks.Providers.ShopWindow.Provider.GetDeals(user);
                break;

            case Provider.Amazon:
                Tasks.Providers.Amazon.Provider.GetDeals(user);
                break;

            case null:
                throw new Exception("No provider was selected.");

            default:
                throw new ArgumentOutOfRangeException();
            }
        }
Example #2
0
        public void Sandbox()
        {
            log4net.Config.XmlConfigurator.Configure();
            PostCreationService.Clear();
            TaxonomyCreationService.Clear();
            TaxonomyCreationService.Initialize();
            var user = UserCreationService.CreateOrUpdate("couponer", "$P$BWJW/XnJo3sQg6CNqsrt1zHYMo4H7b1");

            Provider.GetDeals(user);
        }