Exemplo n.º 1
0
        static GameReaderUnitTest()
        {
            logFileReader = new GamesLogFileReader(logFilePath);

            gamesReader = logFileReader.Reader();

            using (var uow = new UnitOfWork(new QuakeContext()))
            {
                uow.Current().Database.ExecuteSqlCommand("DELETE FROM Game;");

                gamesRepository = new Games(uow);
                gamesRepository.Save(gamesReader);
            }
        }