public void GameMachineRepository_GetAllGamemachines_with_GameData() { using (var transaction = new TransactionScope()) { GameMachine gm = CreateMockGameMachine(); sut.AddGamemachine(gm); var result = sut.GetAllGameMachines(); result.Count().ShouldBeGreaterThan(0); } }
// GET All Game machines public JsonResult GetAllGameMachines() { var gamemachineList = _gamerepo.GetAllGameMachines(); return(Json(gamemachineList, JsonRequestBehavior.AllowGet)); }