예제 #1
0
        public void DeleteAnAuthor_RedirectToPage_POST()
        {
            // arrange
            var mock2 = new Mock <IConfiguration>();
            var mock  = new Mock <ILibService>();
            AuthorController controller = new AuthorController(mock.Object, mock2.Object);
            // act
            RedirectToPageResult result = controller.RedirectToPage("DeleteAnAuthor");

            //assert
            Assert.IsNotNull(result);
            Assert.That(result.PageName, Is.EqualTo("DeleteAnAuthor"));
        }