Esempio n. 1
0
        public void Test()
        {
            SniImporter sniImporter = new SniImporter();
            var importedSnis = sniImporter.Import();
            Assert.That(importedSnis.Count(), Is.AtLeast(10));

            foreach(SniHead sniHead in importedSnis)
            {
                Console.WriteLine(string.Format("SniNo: {0} SniTitel: {1} Snigrupp: {2} SniGruppId: {3}", sniHead.Items.First().SniNo, sniHead.Items.First().Title, sniHead.Title, sniHead.SniHeadId));
            }
        }
Esempio n. 2
0
        public void Setup()
        {
            var modelFactory = new ModelFactory<UserModel>(() => new UserModel()); // {OnRestore = model => model.Invalidate()};
            _userRepository = new UserRepository(new RepositoryConfiguration(), modelFactory) { Path = @"c:\temp\yoyyin\users" };
            _userRepository.Purge();

            _userImporter = new UserImporter();
            _sniImporter = new SniImporter();
            //DevelopmentUserRepository = new DevelopmentUserRepository(new UserImporter(), new SniImporter(), UserRepository);
            //QandARepository = new Repository<QandAModel>(new RepositoryConfiguration(), qandAFactory) { Path = @"c:\Temp\yoyyin\Q&A" };

            Console.Out.WriteLine("Revision is now {0}", _userRepository.Revision);
        }