public void DoImportTest() { var studentRepository = _dataFixture.GetDependency<IStudentRepository>(); var unitOfWork = _dataFixture.GetDependency<IUnitOfWork>(); // touch the database to initialize int c = studentRepository.Get().Count(); var importer = new ExtendedRepositoryImport(studentRepository); importer.Import(new CsvStudentDataSource("App_Data/names.csv")); }
public void DoImportTest() { var studentRepository = _dataFixture.GetDependency <IStudentRepository>(); var unitOfWork = _dataFixture.GetDependency <IUnitOfWork>(); // touch the database to initialize int c = studentRepository.Get().Count(); var importer = new ExtendedRepositoryImport(studentRepository); importer.Import(new CsvStudentDataSource("App_Data/names.csv")); }