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 void TestInitialize() { List<int> testList = new List<int>(); testList.Add(3); testList.Add(5); testList.Add(9); this.walker = new RandomWalker(testList); }