public void MustHaveUserMustHaveAUserWithFullProfile() { WebConfigManager.SyncConfig(PhysicalPath); var user = UserController.GetUserByName(0, "MichaelWoods"); if (user == null) { user = new UserInfo { PortalID = 0, Username = "******", IsSuperUser = false, Email = "*****@*****.**", FirstName = "Michael", LastName = "Woods", DisplayName = "Michael Woods" }; user.Membership.Password = "******"; UserController.CreateUser(ref user); user.Profile.City = "Vancouver"; user.Profile.Country = "Canada"; user.Profile.PostalCode = "V1M 4A6"; user.Profile.Region = "British Columbia"; user.Profile.Street = "211 – 9440 202nd Street Langley"; var provider = ProfileProvider.Instance(); provider.UpdateUserProfile(user); } else if (user.IsDeleted) { UserController.RestoreUser(ref user); } Config.Touch(); }