Ejemplo n.º 1
0
        public async Task ReturnDetailsViewWhenInvoked()
        {
            //Arrange
            var userServiceMock           = new Mock <IUserService>();
            var twitterAccountServiceMock = new Mock <ITwitterAccountService>();
            var tweetServiceMock          = new Mock <ITweetService>();

            var controller = new UserManagementController
                             (
                userServiceMock.Object,
                twitterAccountServiceMock.Object,
                tweetServiceMock.Object
                             );



            //Act & Assert
            var result = await controller.Details("2") as ViewResult;

            Assert.AreEqual("Details", result.ViewName);
        }