public void GameMachineRepository_UpdateGamemachine_with_GameData() { using (var transaction = new TransactionScope()) { GameMachine gm = CreateMockGameMachine(); GameMachine ugm = CreateMockGameMachine(); sut.AddGamemachine(gm); ugm.Id = gm.Id; var result = sut.UpdateGamemachine(ugm); result.ShouldBeTrue(); } }
//Update Game Machine public string UpdateGamemachine(GameMachine gamemachine) { if (_gamerepo.UpdateGamemachine(gamemachine)) { return("Game machine details updated successfully"); } else { return("Invalid Game machine details."); } }