コード例 #1
0
        private async Task ShowCard(ShowCard command)
        {
            var response = await client.PutAsync($"/games/{command.GameId}/statistics/card", command.ToContent());

            response.StatusCode.Should().Be((int)HttpStatusCode.OK);
        }
コード例 #2
0
        public async Task AddCard_EmptyPayload_ReturnsBadRequest()
        {
            var command  = new ShowCard();
            var response = await client.PutAsync($"/games/{Guid.NewGuid()}/statistics/card", command.ToContent());

            response.StatusCode.Should().Be((int)HttpStatusCode.BadRequest);
        }