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); }
public void ProfileController_ConstructsProperly() { ProfileController profileController = new ProfileController(_userRepository.Object, _memberShipService.Object); Assert.IsNotNull(profileController); }