示例#1
0
        public async Task AddPlayer_Action_Should_Return_New_Guid()
        {
            ActionResult <Guid> response = _gameController.Prepare();

            Assert.AreNotEqual(Guid.Empty, response.Value);
            ActionResult <Guid> addPlayerResponse = await _gameController.AddPlayer(response.Value, new AddPlayerArguments()
            {
                PlayerId = Guid.NewGuid(), PlayerName = "Carlos"
            });

            Assert.AreNotEqual(Guid.Empty, addPlayerResponse.Value);
        }