asp.net mvc - pre-conditions and database interaction -


let me ask something, if have scenario this:

scenario: listing questions user has answered questions          given logged user called "vintem"           , have following projects                  | project   |                  | project 1 |                  | project 2 |          when visit projects page          should see          | project   |          | project 1 |          | project 2 |  

what in case create projects must seen in projects page? suppose using repository pattern call repository create projects? or simulate creation of projects using watin? in case of calling repository directly, connection database have same 1 in web project right? can't have test db , dev db in case. thanks

your given there set context. not have use same constructs when or then. if wished insert projects in db straight sql, doesn't matter. wouldn't user watin set projects. make tests more brittle changes ui effect test. run slower

you using repository pattern. indicated i'd use along sqllite back-end.


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -