public void Activation() { var userRepository = new UserRepositoryMock().GetUserRepoMockedInstance(); var authProvider = new Mock <FormsAuthProvider>(); var accountController = new AccountController(authProvider.Object, userRepository); var result = accountController.Activation("*****@*****.**"); Assert.IsInstanceOfType(result, typeof(ViewResult)); }