Exemplo n.º 1
0
        public static void Main(string[] args)
        {
            SportsDataSubject subject = new SportsDataSubject();

            EventListUI eventListUI = new EventListUI(subject);
            BetslipUI   betslipUI   = new BetslipUI(subject);

            subject.SportsData = "{EventID: 5, IsFavourite: false}";
        }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            IBetPlacer       betPlacementUtil = new BetPlacementUtil();
            ITooltipRenderer tooltipRenderer  = new TooltipRenderer();

            ICommand placeBetsCommand     = new PlaceBetsCommand(betPlacementUtil);
            ICommand renderTooltipCommand = new RenderTooltipCommand(tooltipRenderer);

            BetslipUI betslipUI = new BetslipUI(placeBetsCommand, renderTooltipCommand);

            betslipUI.OnClick();
            betslipUI.OnMouseHover();
        }