// Add Game machine
 public string AddGamemachine(GameMachine gamemachine)
 {
     if (_gamerepo.AddGamemachine(gamemachine))
     {
         return("Game machine details added successfully");
     }
     else
     {
         return("Invalid Game machine details.");
     }
 }
示例#2
0
 public void GameMachineRepository_AddGamemachine_with_GameData()
 {     //given //when
     using (var transaction = new TransactionScope())
     { //then
         var result = sut.AddGamemachine(CreateMockGameMachine());
         result.ShouldBeTrue();
     }
 }