Ejemplo n.º 1
0
 public void BeforeTest()
 {
     _settlementMonitorRequest   = new BetViewRequest();
     _authorizationPage          = new AuthorizationMonitor();
     _settlementMonitorPage      = new SettlementMonitorPage();
     _settlenemtMonitorEventPage = new SettlenemtMonitorEventPage();
     _playerHistoryPage          = new PlayerHistoryPage();
     _betsMonitorPage            = new BetsMonitorPage();
 }
Ejemplo n.º 2
0
 public void BeforeTest()
 {
     _backOfficeLoginPage        = new BackOfficeLoginPage();
     _settlementMonitorPage      = new SettlementMonitorEventTreePage();
     _settlementMonitorEventPage = new SettlementMonitorEventPage();
     _playerHistoryPage          = new PlayerHistoryPage();
     _betsMonitorPage            = new BetsMonitorPage();
     _betViewRequest             = new BetViewRequest();
 }
Ejemplo n.º 3
0
        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");
        }
Ejemplo n.º 4
0
        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");
        }