Exemplo n.º 1
0
        public void ProfileController_Index()
        {
            ProfileController profileController = new ProfileController(_userRepository.Object, _memberShipService.Object);

            ViewResult result = profileController.Index(_user.Name) as ViewResult;

            Assert.IsNotNull(result);
            Assert.AreEqual("Index", result.ViewName);
        }
Exemplo n.º 2
0
        public void ProfileController_ConstructsProperly()
        {
            ProfileController profileController = new ProfileController(_userRepository.Object, _memberShipService.Object);

            Assert.IsNotNull(profileController);
        }