// The DisplayMachineBalance method displays the machine balance.
        /// <summary>
        ///     The <c>DisplayMachineBalance</c> method displays the machine balance.
        /// </summary>
        /// <param name="atm">Atm object to have inventory displayed.</param>
        /// <seealso cref="DisplayBalanceLine"/>
        /// <seealso cref="DisplayWithdrawalSuccess"/>
        /// <seealso cref="DisplayWithdrawalFailure"/>
        /// <seealso cref="DisplayInvalidCommandMessage"/>
        /// <seealso cref="DisplayInvalidArgumentMessage"/>
        public virtual void DisplayMachineBalance(Atm atm)
        {
            DisplayMachineBalanceHeader();

            foreach (var denomination in atm.Denominations)
            {
                DisplayBalanceLine(
                    denomination,
                    atm.GetValue(denomination));
            }
        }