Ejemplo n.º 1
0
 private void InitializeControls()
 {
     game        = new GameViewModel();
     playersList = new BindingList <GameViewModel>();
     playGame    = new PlayGameService();
     playersList.Add(game);
     DataContext = playersList;
 }
Ejemplo n.º 2
0
        public PlaySet(IPlayGame playGame)
        {
            if (playGame == null)
            {
                throw new ArgumentNullException("playGame");
            }

            this.playGame = playGame;
        }
Ejemplo n.º 3
0
        public PlaySet(IPlayGame playGame)
        {
            if (playGame == null)
            {
                throw new ArgumentNullException("playGame");
            }

            this.playGame = playGame;
        }
Ejemplo n.º 4
0
 void Awake()
 {
     if (StartGameInfo.StartGameInfo.IsSinglePlay == false)
     {
         playGame = MultiPlayGameFactory.CreateMultiPlayGame(GetPlayGameInitData());
     }
     else
     {
         playGame = new SinglePlayGame(GetPlayGameInitData());
     }
 }
Ejemplo n.º 5
0
        public async Task InvokeAsync(HttpContext context, IPlayGame game, IServiceProvider provider)
        {
            StringBuilder sb = new StringBuilder();

            foreach (var sv in provider.GetServices <IDemoService>())
            {
                sb.Append($"<br>{sv.Version}<br/>");
            }
            await context.Response.WriteAsync(sb.ToString());

            await _next(context);

            //return Task.CompletedTask;
        }
Ejemplo n.º 6
0
 public PlaySet(IPlayGame playGame)
 {
     _playGame = playGame ?? throw new ArgumentNullException("playGame");
 }
Ejemplo n.º 7
0
 public HomeController(IUnitOfWork unitOfWork, IPlayGame playGame)
 {
     _unitOfWork = unitOfWork;
     _playGame   = playGame;
 }
Ejemplo n.º 8
0
 public MainMenu(IDeckCollectionManager deckCollectionManager, IPlayGame playGame, Constants constants)
 {
     this.deckCollectionManager = deckCollectionManager;
     this.playGame = playGame;
     this.contants = constants;
 }
Ejemplo n.º 9
0
 public void Setup()
 {
     _playPointMock = new Mock <IPlayPoint>();
     _playGame      = new PlayGame();
 }
Ejemplo n.º 10
0
 public void GamePlay_Constructor_Null_IDetermineWinner_Contract_Checked()
 {
     //Act
     target = new PlayGame(null);
 }
Ejemplo n.º 11
0
 public void TearDown()
 {
     determineWinner.Verify();
     target = null;
 }
Ejemplo n.º 12
0
 public void Setup()
 {
     determineWinner = new Mock <IDetermineWinner>();
     target          = new PlayGame(determineWinner.Object);
 }
Ejemplo n.º 13
0
 public void TearDown()
 {
     determineWinner.Verify();
     target = null;
 }
Ejemplo n.º 14
0
 public void Setup()
 {
     determineWinner = new Mock<IDetermineWinner>();
     target = new PlayGame(determineWinner.Object);
 }
Ejemplo n.º 15
0
 public void GamePlay_Constructor_Null_IDetermineWinner_Contract_Checked()
 {
     //Act
     target = new PlayGame(null);
 }