public void DeleteAuction_ExpectNoResponse()
        {
            // Arrange
            Mock <IRestClient> restClient = new Mock <IRestClient>();

            restClient.Setup(x => x.Execute(It.IsAny <IRestRequest>(), Method.DELETE))
            .Returns(new RestResponse
            {
                ResponseStatus = ResponseStatus.Error
            });
            APIService apiService = new APIService(restClient.Object);

            // Act
            bool deleteSuccess = apiService.DeleteAuction(1);

            // Assert
            deleteSuccess.Should().BeFalse();
        }
        public void DeleteAuction_ExpectFailureResponse()
        {
            // Arrange
            Mock <IRestClient> restClient = new Mock <IRestClient>();

            restClient.Setup(x => x.Execute(It.IsAny <IRestRequest>(), Method.DELETE))
            .Returns(new RestResponse
            {
                StatusCode     = HttpStatusCode.NotFound,
                ResponseStatus = ResponseStatus.Completed
            });
            APIService apiService = new APIService(restClient.Object);

            // Act
            bool deleteSuccess = apiService.DeleteAuction(99);

            // Assert
            deleteSuccess.Should().BeFalse();
        }
        public void DeleteAuction_ExpectNoResponse()
        {
            // Arrange
            Mock <IRestClient> restClient = new Mock <IRestClient>();

            restClient.Setup(x => x.Execute(It.Is <IRestRequest>(r => r.Resource == APIService.API_URL + "/99"), Method.DELETE))
            .Returns(new RestResponse
            {
                ResponseStatus = ResponseStatus.Error
            });
            APIService apiService = new APIService(restClient.Object);

            // Act
            bool deleteSuccess = apiService.DeleteAuction(99);

            // Assert
            APIService.API_URL.Should().Be(EXPECTED_API_URL);
            restClient.Verify(x => x.Execute(It.Is <IRestRequest>(r => r.Resource == EXPECTED_API_URL + "/99"), Method.DELETE), Times.Once());
            deleteSuccess.Should().BeFalse();
        }