public void TestEditNotNull()
        {
            // Arrange
            BeerController controller = new BeerController();

            // Act
            ActionResult result = controller.Edit(5) as ActionResult;

            // Assert
            Assert.IsNotNull(result);
        }
        public void Test_Edit()
        {
            const string id = "21st_amendment_brewery_cafe-amendment_pale_ale";

            using (var cluster = new Cluster())
            {
                using (var bucket = cluster.OpenBucket("beer-sample"))
                {
                    var controller = new BeerController(new BeerRepository(bucket));
                    var get        = bucket.GetDocument <Beer>(id);
                    var beer       = get.Document.UnWrap();
                    beer.Ibu = 3.8m;
                    var result = (RedirectToRouteResult)controller.Edit(id, get.Content);
                    Assert.IsNotNull(result);
                }
            }
        }