public async Task Delete_given_repository_returns_false_returns_NotFound()
        {
            var repository = new Mock <IWineRepository>();

            var controller = new WinesController(repository.Object);

            var delete = await controller.Delete(42);

            Assert.IsType <NotFoundResult>(delete);
        }
        public async Task Delete_given_id_deletes_wine()
        {
            var repository = new Mock <IWineRepository>();

            var controller = new WinesController(repository.Object);

            await controller.Delete(42);

            repository.Verify(s => s.DeleteAsync(42));
        }
        public async Task Delete_given_valid_returns_NoContent()
        {
            var repository = new Mock <IWineRepository>();

            repository.Setup(s => s.DeleteAsync(42)).ReturnsAsync(true);
            var controller = new WinesController(repository.Object);

            var delete = await controller.Delete(42);

            Assert.IsType <NoContentResult>(delete);
        }