public void DeleteNewsInstance_ShouldReturnNotfound()
        {
            var context    = new MockNewsFeedAPIContext();
            var controller = new NewsInstancesController(context);

            context.NewsInstances.Add(GetNewsInstance());
            var result = controller.DeleteNewsInstance(3);

            Assert.IsNotNull(result);
            Assert.IsInstanceOfType(result, typeof(NotFoundResult));
        }
        public void DeleteNewsInstance_ShouldSuccess()
        {
            var context    = new MockNewsFeedAPIContext();
            var controller = new NewsInstancesController(context);

            context.NewsInstances.Add(GetNewsInstance());
            var result = controller.DeleteNewsInstance(1) as StatusCodeResult;

            Assert.IsNotNull(result);
            Assert.AreEqual(HttpStatusCode.NoContent, result.StatusCode);
            var result2 = controller.GetNewsInstance(1);

            Assert.IsNotNull(result2);
            Assert.IsInstanceOfType(result2, typeof(NotFoundResult));
        }