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"));
        }
Esempio n. 2
0
        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"));
        }