Beispiel #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 LevelControllerTests()
        {
            _contextFake = new ContextFake("LevelController");
            var configuration = new MapperConfiguration(cfg =>
            {
                cfg.AddProfile(new AutoMapperConfig());
            });

            _mapper = configuration.CreateMapper();
        }
        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();
        }
        public LogsControllerTests()
        {
            _contextFake = new ContextFake("LogsController");

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

            _mapper = configuration.CreateMapper();
            var moqUserManager = new Mock <UserManager <User> >(
                new Mock <IUserStore <User> >().Object,
                new Mock <IOptions <IdentityOptions> >().Object,
                new Mock <IPasswordHasher <User> >().Object,
                new IUserValidator <User> [0],
                new IPasswordValidator <User> [0],
                new Mock <ILookupNormalizer>().Object,
                new Mock <IdentityErrorDescriber>().Object,
                new Mock <IServiceProvider>().Object,
                new Mock <ILogger <UserManager <User> > >().Object);

            moqUserManager.Setup(m => m.GetUserId(null)).Returns("1");
            _userManager = moqUserManager.Object;
        }
Beispiel #5
0
 public EnvironmentRepositoryTests()
 {
     _contextFake = new ContextFake("EnvironmentRepository");
 }
Beispiel #6
0
 public ParserTest()
 {
     _contextFake = new ContextFake("ParserTest");
 }
 public void Init()
 {
     context = new ContextFake();
 }
Beispiel #8
0
 public LevelRepositoryTests()
 {
     _contextFake = new ContextFake("LevelRepository");
 }
Beispiel #9
0
 public LogRepositoryTests()
 {
     _contextFake = new ContextFake("LogRepository");
 }