public Genesis(string user, string connectionString, ITraceExporter traceExporter) { _day = DateTime.MinValue; var cache = new InProcessCache(); var tadpoleMine = new TadpoleMine(user, cache, connectionString, traceExporter); _pondMine = new PondMine(user, cache, connectionString, traceExporter); _frogMine = new FrogMine(user, cache, connectionString, traceExporter); _pairSelectionMine = new PairSelectionMine(user, _frogMine, traceExporter); _maturationEventMine = new MaturationEventMine(user, _frogMine, tadpoleMine, traceExporter); _matingEventMine = new MatingEventMine(user, _frogMine, tadpoleMine, traceExporter); _frogCountMine = new FrogCountMine(user, connectionString, traceExporter); _tadpoleCountMine = new TadpoleCountMine(user, connectionString, traceExporter); }
public TadpoleCountsController(IAuthTokenReader tokenReader, ITraceExporter traceExporter) { _mine = new TadpoleCountMine(tokenReader.GetToken(), DbUtils.ConnectionString, traceExporter); }