public void DeleteNewsItem_OK()
        {
            // Arrange
            var controller = new NewsItemsController();

            controller.Request       = new HttpRequestMessage();
            controller.Configuration = new HttpConfiguration();

            // Act
            var response = controller.DeleteNewsItem(1);
            var result   = response as OkNegotiatedContentResult <NewsItemSend>;

            // Assert
            Assert.IsNotNull(result);
        }
        public void DeleteNewsItem_FailNotFound()
        {
            // Arrange
            var controller = new NewsItemsController();

            controller.Request       = new HttpRequestMessage();
            controller.Configuration = new HttpConfiguration();

            // Act
            var response = controller.DeleteNewsItem(-1);
            var result   = response as NotFoundResult;

            // Assert
            Assert.IsNotNull(result);
        }