示例#1
0
 public int PlayerId()
 {
     PlayerRegistrationInfo reg = new PlayerRegistrationInfo();
     reg.Username = Username;
     reg.Password = Password;
     return SetUpTestEnvironment.playerManager.RegisterPlayer(reg);
 }
示例#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);
 }