public async void DeleteAsync_Called_CallsBuildUriWithFieldId()
        {
            // Given
            _client.Setup(b => b.BuildUri(It.IsAny <string>(), It.Is <string>(s => s.Contains("321")))).Returns(new Uri("http://search"));
            var ticketResource = new TicketResource(_client.Object);

            // When
            await ticketResource.DeleteAsync(321);

            // Then
            _client.Verify(c => c.BuildUri(It.Is <string>(s => s.Contains("321")), ""));
        }
        public async void DeleteAsync_Called_CallsDeleteOnClient()
        {
            // Given
            var response = new TicketResponse {
                Item = new Ticket {
                    Id = 1
                }
            };

            _client.Setup(b => b.GetAsync <TicketResponse>(It.IsAny <Uri>())).Returns(TaskHelper.CreateTaskFromResult(response));
            var ticketResource = new TicketResource(_client.Object);

            // When
            await ticketResource.DeleteAsync(321);

            // Then
            _client.Verify(c => c.DeleteAsync(It.IsAny <Uri>()));
        }