Exemplo n.º 1
0
        public void AddShouldRedirectToPersonDetails()
        {
            // Arrange
            var mockPerson = new Mock <IPersonWebService>();
            var mockWallet = new Mock <IWalletWebService>();
            var controller = new WalletController(mockWallet.Object, mockPerson.Object);

            // Act
            var result = controller.RedirectToAction("Details");

            // Assert
            Assert.That(result.ActionName, Is.EqualTo("Details"));
        }