Inheritance: IdokladSdk.ApiModels.BaseModels.ApiModel
        private void Update(DocumentAddress address)
        {
            // Arrange
            string random = new Random().Next(111111, 999999).ToString(CultureInfo.InvariantCulture);
            address.Firstname = random;

            // Act
            var result = ApiExplorer.DocumentAddresses.Update(address.Id, address);

            // Assert
            Assert.That(result, Is.Not.Null);
            Assert.That(result.Firstname, Is.EqualTo(random));
        }
 /// <summary>
 /// PUT api/Receivedinvoices/{id}/SupplierPurchaserDocumentAddress
 /// Method Updates contact informations of the supplier.
 /// </summary>
 public DocumentAddress UpdateSupplierPurchaserDocumentAddress(int invoiceId, DocumentAddress documentAddress)
 {
     return Put<DocumentAddress, DocumentAddress>(ResourceUrl + "/" + invoiceId + "/SupplierPurchaserDocumentAddress", documentAddress);
 }
 /// <summary>
 /// PUT api/Receivedinvoices/{id}/MyDocumentAddress
 /// Method Updates contact informations of the purchaser.
 /// </summary>
 public DocumentAddress UpdateMyDocumentAddress(int invoiceId, DocumentAddress documentAddress)
 {
     return Put<DocumentAddress, DocumentAddress>(ResourceUrl + "/" + invoiceId + "/MyDocumentAddress", documentAddress);
 }
 /// <summary>
 /// PUT api/IssuedInvoices/{id}/PurchaserDocumentAddress
 /// Method Updates contact informations of the purchaser.
 /// </summary>
 public DocumentAddress UpdatePurchaserDocumentAddress(int invoiceId, DocumentAddress address)
 {
     return Put<DocumentAddress, DocumentAddress>(ResourceUrl + "/" + invoiceId + "/PurchaserDocumentAddress", address);
 }
 /// <summary>
 /// PUT api/DocumentAddresses/{id}
 /// Method updates contact information on the invoice by DocumentAddressId.
 /// </summary>
 public DocumentAddress Update(int documentAddressId, DocumentAddress model)
 {
     return Put<DocumentAddress, DocumentAddress>(ResourceUrl + "/" + documentAddressId, model);
 }