Ejemplo n.º 1
0
        public void Create()
        {
            UserIdentity userIdentity = new UserIdentity(Configuration());

            UserEntity user = new UserEntity(
                Guid.NewGuid(),
                "user001",
                "user001bbbb",
                "*****@*****.**",
                "*****@*****.**".ToUpper(),
                true,
                "?",
                Convert.ToDateTime("1986-08-20"),
                DateTime.Now);

            var result = userIdentity.CreateAsync(user, new CancellationToken()).Result;

            Assert.IsNotNull(result, "error insert");
        }