Beispiel #1
0
        public void FindEventByTextSearch(string eventsDate, string text)
        {
            _settlementMonitorPage = new SettlementMonitorPage();
            _settlementMonitorPage
            .SelectDate(eventsDate)
            .SearchEventByText(text);

            Assert.AreEqual(_settlementMonitorPage.GetEventDescriptionInTree(), _settlementMonitorPage.GetEventDescriptionInList(), "Event stage does not match");  //(Regex.IsMatch(_settlementMonitorPage.GetEventDescriptionInList().ToString(), "Киберспорт.*"), "Event description does not match");
        }
Beispiel #2
0
        public void VerifySettlementStatus(string eventsDate, string expectedSettlementStatus)
        {
            _settlementMonitorPage = new SettlementMonitorPage();
            _settlementMonitorPage
            .SelectDate(eventsDate)
            .SelectEventInEventsTree();

            Assert.AreEqual(expectedSettlementStatus, _settlementMonitorPage.GetEventSettlementStatus(), "Event settlement status does not match");
        }
Beispiel #3
0
        public void VerifyBetDate(string eventsDate, string text, string betsDate, string betsAmountFrom, string betsAmountTo, string channel)
        {
            _settlementMonitorPage = new SettlementMonitorPage();
            _settlementMonitorPage
            .SelectDate(eventsDate)
            .SearchEventByText(text)
            .NavigateIntoEvent()
            .FilterBets(betsDate, betsAmountFrom, betsAmountTo, channel);

            Assert.That(_settlementMonitorPage.GetBetAcceptTime(), Is.GreaterThan(betsDate), "Date does not match");
        }
Beispiel #4
0
        public void VerifyBetResult(string eventsDate, string text, string betsDate, string betsAmountFrom, string betsAmountTo, string channel, string expectedBetResult)
        {
            _settlementMonitorPage = new SettlementMonitorPage();
            _settlementMonitorPage
            .SelectDate(eventsDate)
            .SearchEventByText(text)
            .NavigateIntoEvent()
            .FilterBets(betsDate, betsAmountFrom, betsAmountTo, channel)
            .ObserveBetLogs();

            Assert.AreEqual(expectedBetResult, _settlementMonitorPage.GetBetResultPopup(), "Bet result does not match");
        }
Beispiel #5
0
        public void VerifyEventName(string eventsDate, string text, string betsDate, string betsAmountFrom, string betsAmountTo, string channel)
        {
            _settlementMonitorPage = new SettlementMonitorPage();
            _settlementMonitorPage
            .SelectDate(eventsDate)
            .SearchEventByText(text)
            .NavigateIntoEvent()
            .FilterBets(betsDate, betsAmountFrom, betsAmountTo, channel)
            .ObserveBetLogs();

            Assert.AreEqual(_settlementMonitorPage.GetEventNameDetailedView(), _settlementMonitorPage.GetEventNamePopup(), "Event name does not match");
        }
Beispiel #6
0
        public void NavigateToPlayerHistoryFromSettlementMonitor(string eventsDate, string text, string betsDate, string betsAmountFrom, string betsAmountTo, string channel, string playerId)
        {
            _settlementMonitorPage = new SettlementMonitorPage();
            _settlementMonitorPage
            .SelectDate(eventsDate)
            .SearchEventByText(text)
            .NavigateIntoEvent()
            .FilterBets(betsDate, betsAmountFrom, betsAmountTo, channel)
            .NavigateToPlayerHistoryPage();
            _playerHistoryPage = new PlayerHistoryPage();

            Assert.AreEqual(playerId, _playerHistoryPage.GetPlayerId(), "Player ID does not match");
        }