Esempio n. 1
0
        public void Geldige_Edit_BeheerController()
        {
            var mock = new Mock <IHoneymoonshopRepository>();
            BeheerController controller = new BeheerController(mock.Object);
            Jurk             jurk       = new Jurk()
            {
                Artikelnummer = 9999999, JurkId = 1
            };
            var result = controller.Edit(jurk);
            var redirectToActionResult = Assert.IsType <RedirectToActionResult>(result);

            Assert.Null(redirectToActionResult.ControllerName);
            Assert.Equal("Crud", redirectToActionResult.ActionName);
        }