示例#1
0
        public void CanUpdateMember()
        {
            MembershipCreateStatus status;
            var user = Provider.CreateUser("test user",
                                           "test password",
                                           "email",
                                           "question",
                                           "answer",
                                           true,
                                           Guid.NewGuid(),
                                           out status);

            Assert.That(status, Is.EqualTo(MembershipCreateStatus.Success));
            user         = Provider.GetUser("test user", false);
            user.Comment = "hello";
            Provider.UpdateUser(user);
        }