示例#1
0
 public void GameMachineRepository_DeleteGamemachine_with_GameId()
 {
     using (var transaction = new TransactionScope())
     {
         GameMachine gm = CreateMockGameMachine();
         sut.AddGamemachine(gm);
         var result = sut.DeleteGamemachine(Convert.ToString(gm.Id));
         result.ShouldBeTrue();
     }
 }
 // Delete Gamemachine
 public string DeleteGamemachine(string gamemachineId)
 {
     if (_gamerepo.DeleteGamemachine(gamemachineId))
     {
         return("Selected Game machine deleted sucessfully");
     }
     else
     {
         return("Invalid operation");
     }
 }