コード例 #1
0
 public int PlayerId()
 {
     PlayerRegistrationInfo reg = new PlayerRegistrationInfo();
     reg.Username = Username;
     reg.Password = Password;
     return SetUpTestEnvironment.playerManager.RegisterPlayer(reg);
 }
コード例 #2
0
ファイル: ReviewTickets.cs プロジェクト: FireAlkazar/Learning
 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);
 }