SpecFlow Integration Testing with Database Patterns
问题 I'm attempting to set up SpecFlow for integration/acceptance testing. Our product has a backing database (not a huge one though) in Sqlite. This is actually proving to be a slightly sticky point though; how do I model the database for the tests? I would like to know what patterns others out there use for doing integration/acceptance testing with backing databases. I can think of the following approaches: Compile a database into the assembly with the tests, then shadow-copy it for each test.