コード例 #1
0
 public void UpdateClientInfo(ClientInfoDTO client)
 {
     if (client != null)
     {
         ClientPersons clientDB = new ClientPersons();
         clientDB.id    = client.Id;
         clientDB.name  = client.Name;
         clientDB.email = client.Email;
         _mng.UpdateClientPersons(clientDB);
     }
 }
コード例 #2
0
        public async Task UserInfo()
        {
            string url      = ApiPaths.CLIENT_INFO_PATH;
            var    response = await this.ClientInfoConsumer.ExecuteRequest(url, Helpers.EmptyDictionary, null, Method.GET);

            Assert.True(response.Status == HttpStatusCode.OK);

            ClientInfoDTO parsedResponse = JsonUtils.DeserializeJson <ClientInfoDTO>(response.ResponseJson);

            Assert.True(parsedResponse.Email == this.ClientInfoConsumer.ClientInfo.Account.Email);
            //Assert.True(parsedResponse.FirstName == ClientInfoInstance.FullName);
            //Assert.True(parsedResponse.LastName == ClientInfoInstance.FullName);
        }