Example #1
0
 public LotteryWindow(ILotteryGameRepository lotteryGameRepository,
                      IDrawRepository drawRepository, IDrawService drawService)
 {
     InitializeComponent();
     this.drawRepository        = drawRepository;
     this.drawService           = drawService;
     this.lotteryGameRepository = lotteryGameRepository;
 }
 public BattleShipGameService(IDrawService drawService,
                              IMapService mapService,
                              IBattleService battleService,
                              IShipService shipService)
 {
     this.drawService   = drawService;
     this.mapService    = mapService;
     this.battleService = battleService;
     this.shipService   = shipService;
 }
Example #3
0
 public AdminController(IUserService userService,
                        ISessionService sessionService,
                        IDrawService drawService,
                        IPrizeService prizeService)
 {
     _userService    = userService;
     _sessionService = sessionService;
     _drawService    = drawService;
     _prizeService   = prizeService;
 }
Example #4
0
 public GameOfWarService(
     ILogger <GameOfWarService> logger,
     IConfiguration config,
     IDealCardsService dealCardsService,
     IWinnerService winnerService,
     IPlayerFactory playerFactory,
     IWarService warService, IDrawService drawService)
 {
     _logger           = logger;
     _config           = config;
     _dealCardsService = dealCardsService;
     _winnerService    = winnerService;
     _playerFactory    = playerFactory;
     _warService       = warService;
     _drawService      = drawService;
 }
Example #5
0
        public Game(
            IDealCardsService dealCardsService,
            IWinnerService winnerService,
            IPlayerFactory playerFactory,
            IWarService warService,
            IDrawService drawService,
            Func <string> inputProvider,
            Action <string> outputProvider,
            int playerCount)
        {
            _dealCardsService = dealCardsService;
            _winnerService    = winnerService;
            _inputProvider    = inputProvider;
            _outputProvider   = outputProvider;
            _drawService      = drawService;
            _warService       = warService;

            Players = playerFactory.CreatePlayers(playerCount);
        }
 public OperationController(IDrawService drawService, IPythonService pythonService, IOperationService operationService)
 {
     _drawService      = drawService;
     _pythonService    = pythonService;
     _operationService = operationService;
 }
 public DrawController(IDrawService drawService, IDrawMapper drawMapper)
 {
     _mapper      = drawMapper;
     _drawService = drawService;
 }
 public DrawController(IDrawService drawService, UserManager <ApplicationUser> userManager)
 {
     _drawService = drawService;
     _userManager = userManager;
 }
Example #9
0
 public Ship(IDrawService drawService)
 {
     this.drawService = drawService;
 }
Example #10
0
 public DrawMessageHub(IDrawService drawService)
 {
     _drawService = drawService;
 }
Example #11
0
 public DrawFormController(IDrawService drawService)
 {
     this.drawService = drawService;
 }
Example #12
0
 public DrawServiceTests()
 {
     _sut = new DrawService();
 }
Example #13
0
 public DrawController(IDrawService drawService)
 {
     _drawService = drawService;
 }
Example #14
0
        private void InitializeWindow(ILotteryGameRepository lotteryGameRepository, IDrawRepository drawRepository, IDrawService drawService)
        {
            _window = new LotteryWindow(lotteryGameRepository, drawRepository, drawService);
            _window.Show();

            _gameCombobox    = _window.GetPrivateFieldValue <ComboBox>();
            _fromDatePicker  = _window.GetPrivateFieldValueByName <DatePicker>("FromDatePicker");
            _untilDatePicker = _window.GetPrivateFieldValueByName <DatePicker>("UntilDatePicker");
            _showDrawsButton = _window.GetPrivateFieldValueByName <Button>("ShowDrawsButton");
            _newDrawButton   = _window.GetPrivateFieldValueByName <Button>("NewDrawButton");
            _drawsListView   = _window.GetPrivateFieldValueByName <ListView>("DrawsListView");
        }
Example #15
0
 public void Draw(IDrawService drawService)
 {
     drawService.Draw(DrawRectangle, _sprite);
 }
Example #16
0
 public abstract void Draw(IDrawService drawService);
Example #17
0
 public HomeController(ILogger <HomeController> logger, IMemberService memberService, IDrawService drawService)
 {
     _logger        = logger;
     _memberService = memberService;
     _drawService   = drawService;
 }
 public DrawHub(IDrawService drawService, IHubContext <ControlPanelHub, IControlPanelClient> controlPanelHubContext)
 {
     _drawService            = drawService;
     _controlPanelHubContext = controlPanelHubContext;
 }
 public DrawController(IDrawService drawService, IConfiguration configuration)
 {
     _drawService   = drawService;
     _configuration = configuration;
 }
 public DrawHub(IDrawService drawService)
 {
     _drawService = drawService;
 }
 public LotteryWindow(ILotteryGameRepository lotteryGameRepository,
                      IDrawRepository drawRepository, IDrawService drawService)
 {
     InitializeComponent();
 }
Example #22
0
 public HomeController(IDrawService drawService)
 {
     this.drawService = drawService.notNull();
 }