public void BeforeTest() { _settlementMonitorRequest = new BetViewRequest(); _authorizationPage = new AuthorizationMonitor(); _settlementMonitorPage = new SettlementMonitorPage(); _settlenemtMonitorEventPage = new SettlenemtMonitorEventPage(); _playerHistoryPage = new PlayerHistoryPage(); _betsMonitorPage = new BetsMonitorPage(); }
public void BeforeTest() { _backOfficeLoginPage = new BackOfficeLoginPage(); _settlementMonitorPage = new SettlementMonitorEventTreePage(); _settlementMonitorEventPage = new SettlementMonitorEventPage(); _playerHistoryPage = new PlayerHistoryPage(); _betsMonitorPage = new BetsMonitorPage(); _betViewRequest = new BetViewRequest(); }
public void NavigateToPlayerHistoryFromBetsMonitor(string acceptTime, string playerId) { _betsMonitorPage = new BetsMonitorPage(); _betsMonitorPage .FilterBetsByAcceptTimeAndPlayerId(acceptTime, playerId) .NavigateToPlayerHistoryPage(); _playerHistoryPage = new PlayerHistoryPage(); Assert.AreEqual(playerId, _playerHistoryPage.GetPlayerId(), "Player ID does not match"); }
public void VerifyEventNames(string playerId, string acceptTime) { BetsClient client = new BetsClient(); FilteringRequestModel betsRequest = new FilteringRequestModel(); InFilterModel inFilter = new InFilterModel(); var playerIds = new[] { playerId }; inFilter.PlayerIds = playerIds; betsRequest.InFilter = inFilter; betsRequest.ODataFilter = $"(acceptTime ge {acceptTime})"; betsRequest.Take = 50; List <BetsResponseModel> betsResponse = client.GetBets(betsRequest); var allEventNamesFromResponse = from bet in betsResponse select bet.EventName; var validEventNamesFromResponse = allEventNamesFromResponse.Where(name => name != null).ToList(); _betsMonitorPage = new BetsMonitorPage(); _betsMonitorPage .FilterBetsByAcceptTimeAndPlayerId(acceptTime, playerId); var allEventNamesFromUi = _betsMonitorPage.GetEventNames(); var validEventNamesFromUi = allEventNamesFromResponse.Where(name => name != null).ToList(); CollectionAssert.AreEqual(validEventNamesFromResponse, validEventNamesFromUi, "Event names do not match"); }