protected AbstractUiTest(String efConnStrKey) { _appServerRootUrl = "http://" + ConfigurationUtil.GetVar("AppServer", "localhost"); _appName = ConfigurationUtil.GetVar("AppName", "Demo.App.Mvc"); _appUrl = _appServerRootUrl.UrlAnd(_appName); var connStr = Environment.GetEnvironmentVariable("ConnectionString"); if (connStr != null) { _resetDatabase = ResetDatabase.CreateFromConnectionString(connStr); } else { var efConnStr = ConfigurationManager.ConnectionStrings[efConnStrKey].ConnectionString; _resetDatabase = ResetDatabase.CreateFromEFConnectionString(efConnStr); } }