让我问你一些事情,如果有这样的场景:
Scenario: Listing the questions for a user that has answered questions
Given I am a logged user called "vintem"
And I have the following projects
| Project |
| Project 1 |
| Project 2 |
When I visit the projects page
Then I should see
| Project |
| Project 1 |
| Project 2 |
在这种情况下,您通常会做什么来创建必须在项目页面中看到的项目?假设我使用存储库模式会调用存储库本身来创建项目?或者使用 Watin 模拟项目的创建?在直接调用存储库的情况下,我与数据库的连接必须与 Web 项目中的连接相同,对吧?在这种情况下,我不能拥有测试数据库和开发数据库。谢谢