コード例 #1
0
        public void CustomSelection2Test()
        {
            var selection = _customSelectionBuilder.SetId("live:2/0/*/1").SetEventId("sr:match:12345").SetOdds(20000).SetBanker(false).Build();

            Assert.IsNotNull(selection);
            Assert.AreEqual("live:2/0/*/1", selection.Id);
            Assert.AreEqual("sr:match:12345", selection.EventId);
            Assert.AreEqual(20000, selection.Odds);
            Assert.AreEqual(false, selection.IsBanker);
        }
コード例 #2
0
        public void NormalSelectionMissingOddsTest()
        {
            var exThrown = false;

            try
            {
                _selectionBuilder.SetId("live:2/0/*/1").SetEventId("sr:match:12345").Build();
            }
            catch (Exception)
            {
                exThrown = true;
            }
            Assert.IsTrue(exThrown);
        }