예제 #1
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            IList<Security> securities = new List<Security>();

            IGameData database =
                new StaticDataExport(databaseFile);

            IReadOnlyList<int> ids = database.inventoryIds();
            IReadOnlyList<SystemPair> systems = database.systemList();

            IPriceWalker walker = new RandomWalker(new List<int>(ids));

            PriceFetcher fetcher = new PriceFetcher(walker,
                EveCentralUtility.downloadPrices,
                EveMarketUtility.fetchVolume);

            Func<PriceFetcher, Func<int, int, int, IPopulator>>
                populatorFactory = (f) =>
                (s, a, d) =>
                {
                    IPopulator populator = new AutoPopulator(f, s, a, d);
                    populator.setup();
                    return populator;
                };

            Form main = new mainWindow(populatorFactory(fetcher), systems);

            Application.Run(main);
        }
 public static void ClassInitialize(TestContext c)
 {
     database = new StaticDataExport("sqlite-latest.sqlite");
 }