Beispiel #1
0
        public static IBetDomainLn CreateBetDomain(int id, bool isbase, int numberOfOdds, bool isvisible)
        {
            var betdomain = new TestBetDomain()
            {
                BetDomainId = id,
            };

            betdomain.Sort                     = new ObservableProperty <int>(new BetDomainLn(), new ObservablePropertyList(), "ChangedCount");
            betdomain.Sort.Value               = id;
            betdomain.Status                   = new ObservableProperty <eBetDomainStatus>(new BetDomainLn(), new ObservablePropertyList(), "ChangedCount");
            betdomain.Status.Value             = eBetDomainStatus.Visible;
            betdomain.IsManuallyDisabled       = new ObservableProperty <bool>(new BetDomainLn(), new ObservablePropertyList(), "ChangedCount");
            betdomain.IsManuallyDisabled.Value = !isvisible;
            if (isbase)
            {
                betdomain.BetTag = BetDomainTypeLn.BET_TAG_WINFTR;
            }
            else
            {
                betdomain.BetTag = BetDomainTypeLn.BET_TAG_WINFTR + "dsg";
            }
            betdomain.BetDomainView = TestBetDomainVw.CreateBetDomain();
            //betdomain.Odds = new OddList<IOddLn>(betdomain);
            for (int i = 0; i < numberOfOdds; i++)
            {
                var odd = TestOdd.CreateOdd(id + i, id + i, true, betdomain);
                //betdomain.Odds.Add(odd);
            }
            betdomain.Match = TestMatchLn.CreateMatch(id + 1, true);

            return(betdomain);
        }
Beispiel #2
0
        public static ITipItemVw CreateTipItem()
        {
            var tipItem = new TestTipItem(TestOdd.CreateOdd(1, 2, true));

            return(tipItem);
        }