Ejemplo n.º 1
0
        public void AddUser()
        {
            var accountClient = new DataClient("664ca358-3ae8-4d79-9554-682d21a01467").Accounts();

            var user = new DataAccountsRequest()
            {
                CompanyName = "Number One",
                Email       = "*****@*****.**",
                Password    = "******"
            };

            var id = accountClient.AddAccount(user).Result;

            var returnedUser = accountClient.GetAccountById(id);

            var otherReturnedUser = accountClient.GetAccountByEmail(user.Email).Result.FirstOrDefault();

            var passwordHash = returnedUser.Result.PasswordHash;

            var correct = IntegraTestEncryption.IsCorrectPassword(user.Password, passwordHash);
        }