public virtual void SetUp() { if (Mode == TestMode.SaveReferenceResults) { _db = new LinqToSqlNorthwindDataProvider(); var directory = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "SavedResults"); _testExecutor = new SavingTestExecutor(directory, SavedResultFileNameGenerator); } else { _db = new RelinqNorthwindDataProvider(); _testExecutor = new CheckingTestExecutor(LoadedResultFileNameGenerator); } }
public virtual void SetUp () { if (Mode == TestMode.SaveReferenceResults) { _db = new LinqToSqlNorthwindDataProvider (); var directory = Path.Combine (AppDomain.CurrentDomain.BaseDirectory, "SavedResults"); _testExecutor = new SavingTestExecutor (directory, SavedResultFileNameGenerator); } else { _db = new RelinqNorthwindDataProvider (); _testExecutor = new CheckingTestExecutor (LoadedResultFileNameGenerator); } }