Пример #1
0
 public ParserTest()
 {
     _contextFake = new ContextFake("ParserTest");
     _context     = _contextFake.GetContext("ParserTestingContext");
     _repoP       = new QuakePlayerRepo(_context);
     _repoG       = new QuakeGameRepo(_context);
     _repoKM      = new QuakeKillMethodRepo(_context);
     _parser      = new Parser(_repoG, _repoP, _repoKM);
 }
        public QuakeGameLoggerControllerTest()
        {
            _contextFake = new ContextFake("QuakeGameLoggerControllerTest");
            _context     = _contextFake.GetContext("ControllerTestingContext");
            _repoP       = new QuakePlayerRepo(_context);
            _repoG       = new QuakeGameRepo(_context);
            _repoKM      = new QuakeKillMethodRepo(_context);
            _parser      = new Parser(_repoG, _repoP, _repoKM);
            _parser.Reader(@"C:\Users\andre\source\repos\QuakeLoggerAPI\testRaw.txt");

            var configuration = new MapperConfiguration(cfg =>
            {
                cfg.AddProfile(new AutoMapperConfig());
            });

            _mapper = configuration.CreateMapper();
        }