Exemple #1
0
        public void GetLandMarkByIdTest()
        {
            context.SeedPlayer(new Player {
                AuthId = "admin", Experience = 123, Landmarks = null, PlayerName = "Admin"
            });
            landmarkService.Post(new Landmark {
                LandmarkId = 1, Knights = null, Lat = 13.3337f, Lng = 66.6666f, Name = "Hel", Owner = "admin"
            });

            landmarkService.Get(1).Should().NotBeNull();
        }
 public IActionResult Get(int landmarkId)
 {
     return(Ok(landmarkService.Get(landmarkId)));
 }