Exemplo n.º 1
0
        protected void CreateMockData()
        {
            users = new List <User>();
            var user = new User()
            {
                Id = 1, Username = "******", CompletedIntro = true
            };

            user.Party.AddMonster(_monsterService.GetMonster(1));
            user.Party.AddMonster(_monsterService.GetMonster(2));
            user.Party.AddMonster(_monsterService.GetMonster(3));
            users.Add(user);
            user = new User()
            {
                Id = 2, Username = "******", CompletedIntro = true
            };
            user.Party.AddMonster(_monsterService.GetMonster(4));
            users.Add(user);
            user = new User()
            {
                Id = 3, Username = "******", CompletedIntro = true
            };
            user.Party.AddMonster(_monsterService.GetMonster(7));
            user.Party.AddMonster(_monsterService.GetMonster(8));
            users.Add(user);
        }
Exemplo n.º 2
0
 public IActionResult GetMonster(int id)
 {
     return(Json(_monsterService.GetMonster(id)));
 }