Last active
July 11, 2022 21:18
-
-
Save n1ckdm/d79a46700856f4fdadf4e9533a6cf886 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Fact] | |
public async Task GameIsTied() | |
{ | |
await _appService.Handle(new CreateGameCommand(_gameId, _player1)); | |
await _appService.Handle(new MakeMoveCommand(_gameId, _player1, Move.Rock)); | |
await _appService.Handle(new MakeMoveCommand(_gameId, _player2, Move.Rock)); | |
var events = await _repository.Load(_gameId); | |
Assert.True(events.Contains(new Events.GameTiedEvent(_gameId))); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment