public TestController( IEventResultDAO eventResultDAO, ITestResultAsyncDAO testResultAsyncDAO) { _eventResultDAO = eventResultDAO; _testResultAsyncDAO = testResultAsyncDAO; }
public TestResultAsyncDAOWrapper(ILoadTestConfig config) { switch (config.DBMS) { case LoadTestDBMS.Mongodb: _dao = new TestResultMongodbDAO(config.MongoConnection); break; case LoadTestDBMS.Pgsql: _dao = new TestResultPgsqlDAO(config.PgsqlConnection); break; case LoadTestDBMS.Mysql: _dao = new TestResultMysqlDAO(config.MysqlConnection); break; default: throw new NotImplementedException(config.DBMS.ToString() + "not implemented"); } }