Exemplo n.º 1
0
        public void ViewGame_WithExistingJoinKey_ReturnsGame()
        {
            // Arrange
            const string joinKey = "asdfasdf";
            var          game    = new Game();

            _gameDataService.GetGameWithPlayers(joinKey).Returns(game);

            // Act
            var result = sut.ViewGame(joinKey);

            // Assert
            _gameDataService.Received().GetGameWithPlayers(joinKey);
            result.Should().Be(game);
        }
Exemplo n.º 2
0
 public Game ViewGame(string joinKey)
 {
     return(_gameDataService.GetGameWithPlayers(joinKey));
 }