public void CreateUser() { var store = new UserStore(); var password = new SecureString(); "test password".ToCharArray().ToList().ForEach(password.AppendChar); var testUser = User.Create("test user", password); if (store.UserExists(testUser.UserName)) { store.Remove(testUser); } store.Add(testUser); }