How do I coordinate settings between my ASP.NET MVC 3 app and SpecFlow? -



How do I coordinate settings between my ASP.NET MVC 3 app and SpecFlow? -

so have vs 2010 solution containing 1 asp.net mvc 3 project , 1 specflow project (with nunit test runner) test former. when testing under specflow (by running specflow project), i'd alter parameter in mvc application's configurationmanager.appsettings dictionary, create connect test database. alter not seem impact running app however, guess test , app not share state.

how can share application setting between mvc app project , specflow project, utilize same database?

edit: found problem wasn't 1 of sharing settings between projects (mvc , specflow), rather between 2 processes. reason test mvc via watin, means development server, running in process of own, beingness exercised tests. such premise of original question wrong onset, , consider jason's reply valid given original premise.

in test project (specflow) create new app.config (unless it's there) , add together appsettings section that, test database connection string. iirc website pick connection string appsettings of test project, rather website.

asp.net-mvc asp.net-mvc-3 nunit specflow

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -