Exemplo n.º 1
0
        public async Task ApiCheckPostCanBeDeletedFromTheSystem()
        {
            const int id = 1;
            var       deletedResponseMessage = await _restClient.DeleteAsync($"{Routes.Posts}/{id}");

            Assert.That(deletedResponseMessage.StatusCode, Is.EqualTo(HttpStatusCode.OK));
        }
Exemplo n.º 2
0
 public async Task GivenUserDeletesPostWithIdFromTheSystemThroughApiRequest(int postId)
 {
     responseMessage = await _restClient.DeleteAsync($"{Routes.Posts}/{postId}");
 }