public IdentityAsyncDAOWrapper(ILoadTestConfig config) { switch (config.DBMS) { case LoadTestDBMS.Pgsql: _dao = new IdentityPgsqlDAO(config.PgsqlConnection); break; case LoadTestDBMS.Mysql: _dao = new IdentityMysqlDAO(config.MysqlConnection); break; case LoadTestDBMS.Mongodb: _dao = new IdentityMongodbDAO(config.MongoConnection); break; default: throw new NotImplementedException(config.DBMS.ToString() + "not implemented"); } }
public IdentityController(ILoadTestConfig configuration, IIdentityDAO identityDAO, IIdentityAsyncDAO identityAsyncDAO) { _config = configuration; _identityDAO = identityDAO; _identityAsyncDAO = identityAsyncDAO; }