コード例 #1
0
 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();
     }
 }
コード例 #2
0
 //Update Game Machine
 public string UpdateGamemachine(GameMachine gamemachine)
 {
     if (_gamerepo.UpdateGamemachine(gamemachine))
     {
         return("Game machine details updated successfully");
     }
     else
     {
         return("Invalid Game machine details.");
     }
 }