示例#1
0
 public void GameMachineRepository_GetGamemachineById_with_GameData()
 {
     using (var transaction = new TransactionScope())
     {
         GameMachine gm = CreateMockGameMachine();
         sut.AddGamemachine(gm);
         var result = sut.GetGamemachineById(Convert.ToString(gm.Id));
         result.ShouldNotBeNull();
     }
 }
        //GET Game machine by Id
        public JsonResult GetGamemachineById(string id)
        {
            var getgamemachineById = _gamerepo.GetGamemachineById(id);

            return(Json(getgamemachineById, JsonRequestBehavior.AllowGet));
        }