public async Task DeletePetAsync_GivenExistentId_DeleteThePet() { await _petApi.DeletePetAsync(PetId); var exception = Assert.Throws <ApiException>(() => _petApi.GetPetById(PetId)); Assert.IsType <ApiException>(exception); Assert.Equal(404, exception.ErrorCode); }