public async Task InitializeAsync() { _presenter = await _browsers.CreatePresenter(); await _presenter.StartPong(); var players = new List <Player>(); foreach (var ix in Enumerable.Range(1, 6)) { players.Add(await _browsers.CreatePlayer(_presenter.Url, $"Player {ix}", true)); } _players = players.ToArray(); }
public async Task InitializeAsync() { _presenter1 = await _browsers.CreatePresenter(); await _presenter1.StartBroadcast(); await _presenter1.Page.TypeAsync("[type=text]", "presenter1"); _presenter2 = await _browsers.CreatePresenter(); await _presenter2.StartBroadcast(); await _presenter2.Page.TypeAsync("[type=text]", "presenter2"); _player = await _browsers.CreatePlayer(_presenter1.Url); }
public async Task InitializeAsync() { _presenter = await _browsers.CreatePresenter(); _player = await _browsers.CreatePlayer(_presenter.Url); }