Exemplo n.º 1
0
        public async void Check_GameMode()
        {
            IGameModeRepository sut4 = GetInMemoryGameModeRepository();
            IEnumerable <Library.Models.GameMode> gms = await sut4.GetGameModes();

            //var cat1 = cats.ToList();
            //var cat2 = cat1[0].CategoryString;
            //int cat = 2;
            //String cat = await sut.GetCategoryById(3);
            String gm1 = await sut4.GetGameModeById(1);

            String gm2 = await sut4.GetGameModeById(2);

            //Assert.True(gms.ToList().Count() == 1);
            //Assert.True(gm1 == "Normal");
            //Assert.True(gm2 == "Hard");
        }
 public GameModeController(IGameModeRepository gameModeRepo)
 {
     _gameModeRepo = gameModeRepo;
 }
 public GameModeController(IGameModeRepository gameModeRepository)
 {
     _modeRepo = gameModeRepository;
 }