protected AbstractAppTestSupport(String efConnStrKey)
        {
            var connStr = Environment.GetEnvironmentVariable("ConnectionString");

            if (connStr != null)
            {
                _resetDatabase = ResetDatabase.CreateFromConnectionString(connStr);
            }
            else
            {
                var efConnStr = ConfigurationManager.ConnectionStrings[efConnStrKey].ConnectionString;
                _resetDatabase = ResetDatabase.CreateFromEFConnectionString(efConnStr);
            }
        }
        protected AbstractIntegTest(String efConnStrKey, params Object[] services)
        {
            var connStr = Environment.GetEnvironmentVariable("ConnectionString");
            if (connStr != null)
            {
                _resetDatabase = ResetDatabase.CreateFromConnectionString(connStr);
            }
            else
            {
                var efConnStr = ConfigurationManager.ConnectionStrings[efConnStrKey].ConnectionString;
                _resetDatabase = ResetDatabase.CreateFromEFConnectionString(efConnStr);
            }

            _services = services;
        }
Exemple #3
0
        protected AbstractIntegTest(String efConnStrKey, params Object[] services)
        {
            var connStr = Environment.GetEnvironmentVariable("ConnectionString");

            if (connStr != null)
            {
                _resetDatabase = ResetDatabase.CreateFromConnectionString(connStr);
            }
            else
            {
                var efConnStr = ConfigurationManager.ConnectionStrings[efConnStrKey].ConnectionString;
                _resetDatabase = ResetDatabase.CreateFromEFConnectionString(efConnStr);
            }

            _services = services;
        }
Exemple #4
0
        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);
            }
        }
 public FixturesController()
 {
     var efConnStr = ConfigurationManager.ConnectionStrings["CoffeeShopContainer"].ConnectionString;
     _resetDatabase = ResetDatabase.CreateFromEFConnectionString(efConnStr);
 }