func beforeEach() { e = fakeEncryptor{} pe = user.PasskeyEncryptor{e} p = pe.Encrypt(i, "passkey") u = user.New(i, p) }
func FromMngUser(mngu User) user.User { u = user.New(user.ParseId(mngu.Id), user.Passkey(mngu.Passkey)) return u }