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