Example #1
0
        /// <summary>
        /// Calls the class method DatabaseInformation and counts the returned elements of the called method.
        /// </summary>
        /// <returns>The number of cars.</returns>
        public int GetTheNumberOfCars()
        {
            int count = 0;

            foreach (var element in databaseInformation.GetOfQuantityAllCars())
            {
                count += element;
            }
            return(count);
        }