コード例 #1
0
        private async Task<Contact> RegisterUser()
        {
            objClient = new Client(Configuration.UrlBase);
            contactWs = new ContactWs(objClient);
            
            var result = await contactWs.RegisterContact(AppUser);
            var r = await contactWs.Contacts();
            return result;

        }
コード例 #2
0
        public async Task TestContatoWsAsyncRegisterContact()
        {
            User user = new User();
            var  gen  = new GeneratorOtp()
            {
                NumberOfChar = 8
            };

            gen.GenerateOtp();
            user.Id             = gen.SmsCode;
            user.Age            = 60;
            user.Name           = "teste " + user.Id;
            user.DddPhoneNumber = user.Id;
            user.AcceptTerms    = true;
            user.CreateRecord   = DateTime.Now;


            var result = await contactWs.RegisterContact(user);

            Assert.NotNull(result);
        }
コード例 #3
0
        public async void TestSms1()
        {
            Client    objClient = new Client(Configuration.UrlBase);
            ContactWs contactWs = new ContactWs(objClient);
            User      user      = new User();

            user.Age            = 30;
            user.Name           = "Julieta";
            user.AcceptTerms    = true;
            user.CreateRecord   = DateTime.Now;
            user.DddPhoneNumber = "41996668442";
            var result = await contactWs.RegisterContact(user);

            Assert.NotNull(result);
        }