Example #1
0
        public void CanGetProfileByProfileName()
        {
            // Act
            Profile p = ProfileProvider.GetByProfileName(MyProfile.ProfileName);

            // Assert
            Assert.IsNotNull(p);
            Assert.AreEqual(MyProfile.Id, p.Id);
            Assert.AreEqual(MyProfile.ProfileName, p.ProfileName);
        }
Example #2
0
        public ActionResult show(string profilename)
        {
            P.Profile p = ProfileProvider.GetByProfileName(profilename);

            ShowProfileViewModel model = new ShowProfileViewModel
            {
                Profile = p
            };

            return(View(model));
        }