4. Cash and cash equivalents:

    2019 2018
 
Cash and cash equivalents

$ 34,507

$ 35,740
  Cash and cash equivalents $ 34,507 $ 35,740

The Corporation has an agreement with a Canadian chartered bank for an operating line of credit in the amount of $75,000 (2018 - $75,000) bearing interest at prime minus 0.25%. The line of credit restricts the availability of the Corporation to lien assets. As of December 31, 2019, the outstanding balance in the line of credit was $nil (2018 - $nil).

5. Accounts receivable:

    2019 2018
 
Trade receivables

$ 25,039

$ 23,763
  Unbilled revenue 28,391 25,888
  Allowance for doubtful accounts (1,286) (985)
  Accounts receivable $ 52,144 $ 48,666

6. Inventory:

Inventory consists of parts and supplies acquired for capital, internal construction, maintenance or recoverable work.

The amount of inventory consumed by the Corporation and recognized as an expense during 2019 was $5,645 (2018 - $5,625).