public void DeleteReturnsNotFound()
        {
            // Arrange
            var mockRepository = new Mock <IFestivalRepository>();
            var controller     = new FestivalsController(mockRepository.Object);

            // Act
            IHttpActionResult actionResult = controller.Delete(10);

            // Assert
            Assert.IsInstanceOfType(actionResult, typeof(NotFoundResult));
        }
        public void DeleteReturnsOk()
        {
            // Arrange
            var mockRepository = new Mock <IFestivalRepository>();

            mockRepository.Setup(x => x.GetById(10)).Returns(new Festival {
                Id = 10
            });
            var controller = new FestivalsController(mockRepository.Object);

            // Act
            IHttpActionResult actionResult = controller.Delete(10);

            // Assert
            Assert.IsInstanceOfType(actionResult, typeof(OkResult));
        }