/// <summary>
        /// Deletes the given <see cref="DomainObject"/>.
        /// </summary>
        /// <param name="clientTransaction">The <see cref="ClientTransaction"/>.</param>
        /// <param name="objectToBeDeleted">The object to be deleted.</param>
        /// <exception cref="ArgumentNullException">One of the parameters is <see langword="null" />.</exception>
        /// <exception cref="ObjectInvalidException">The object is invalid in the given <paramref name="clientTransaction"/>.</exception>
        /// <exception cref="ClientTransactionsDifferException">The object cannot be used in the current transaction.</exception>
        /// <remarks>See also <see cref="DomainObject.Delete"/>.</remarks>
        public static void DeleteObject(ClientTransaction clientTransaction, DomainObject objectToBeDeleted)
        {
            ArgumentUtility.CheckNotNull("clientTransaction", clientTransaction);
            ArgumentUtility.CheckNotNull("objectToBeDeleted", objectToBeDeleted);

            clientTransaction.Delete(objectToBeDeleted);
        }