Exemplo n.º 1
0
        public void GetAllProcentToWin()
        {
            ScoreRepository <ScoreMatches>            SP   = new ScoreRepository <ScoreMatches>();
            Dictionary <string, List <ScoreMatches> > dict = SP.GetScores(new AnalizeBet.Models.Authorization.UnLocal.MyScore.MyScoreRequest("https://www.myscore.com.ua/match/GIkRaLn3/#match-summary ", "_ga = GA1.3.2111981245.1536354321; _gid = GA1.3.1507145647.1537804137; _dc_gtm_UA - 821699 - 48 = 1", "SW9D1eZo"));

            if (dict.ContainsKey("Mutual"))
            {
                float[] allscoresProcent = new float[] { SP.GetProcent(dict["Guest"], "МОЛ Види"), SP.GetProcent(dict["Home"], "Лион"), SP.GetProcent(dict["Mutual"], "Лион") };
                Assert.Equal(SP.getTotalProcentForWin(allscoresProcent) > 50, true);
            }
            else
            {
                float[] allscoresProcent = new float[] { SP.GetProcent(dict["Home"], "Челси"), SP.GetProcent(dict["Guest"], "Шахтер Донецк") };
                Assert.Equal(SP.getTotalProcentForWin(allscoresProcent) > 50, false);
            }
        }
Exemplo n.º 2
0
        public void GetProcentToWinGuest()
        {
            ScoreRepository <ScoreMatches>            SP   = new ScoreRepository <ScoreMatches>();
            Dictionary <string, List <ScoreMatches> > dict = SP.GetScores(new AnalizeBet.Models.Authorization.UnLocal.MyScore.MyScoreRequest("https://www.myscore.com.ua/match/GIkRaLn3/#match-summary", "_ga = GA1.3.2111981245.1536354321; _gid = GA1.3.1507145647.1537804137; _dc_gtm_UA - 821699 - 48 = 1", "SW9D1eZo"));

            Assert.NotNull(SP.GetProcent(dict["Guest"], "Мол Види").ToString());
        }