Ejemplo n.º 1
0
        public async Task TestUserInsert()
        {
            var url  = urlfmt.Url;
            var user = new User {
                Id          = 0, Username = "******", Password = "******",
                Firstname   = "Test Firstname", Lastname = "Test Lastname",
                PhoneNumber = "Test Phone", Email = "Test Email",
                IsReviewer  = true, IsAdmin = false
            };
            var newuser = await ahttp.Create(url, user);

            Console.WriteLine($"Test User Insert:");
            Console.WriteLine($" - Username: {newuser.Username}");
        }