Exemplo n.º 1
0
 public int PlayerId()
 {
     PlayerRegistrationInfo reg = new PlayerRegistrationInfo();
     reg.Username = Username;
     reg.Password = Password;
     return SetUpTestEnvironment.playerManager.RegisterPlayer(reg);
 }
Exemplo n.º 2
0
 public void PlayerOpensAccountWithDollars(String player, decimal balance)
 {
     PlayerRegistrationInfo p = new PlayerRegistrationInfo();
       p.Username = player; p.Name = player;
       p.Password = "******";
       // define other mandatory properties
       int playerId = _playerManager.RegisterPlayer(p);
       _playerManager.AdjustBalance(playerId, balance);
 }