Ejemplo n.º 1
0
        public void ClienteBO_ConsultarUsername()
        {
            // teste do método ConsultarUsername(string username, bool salvarLogin = true, bool loadEndereco = true)
            var consultar = clienteBO.ConsultarUsername("*****@*****.**");

            Assert.AreEqual("00759432040", consultar.CPF);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Returns an IdentityUser instance based on a userName query
        /// </summary>
        /// <param name="userName">The user's name</param>
        /// <returns></returns>
        public Task <ClienteIdentity> FindByNameAsync(string userName)
        {
            if (string.IsNullOrEmpty(userName))
            {
                throw new ArgumentException("Null or empty argument: userName");
            }

            ClienteIdentity result = bo.ConsultarUsername(userName).CopyTo(new ClienteIdentity());

            return(Task.FromResult <ClienteIdentity>(result));
        }