public void TestRetrieveNeededItemList()
        {
            int         expectedNumber = 2;
            List <Item> shelterItems   = new List <Item>();

            shelterItems = _itemAccessor.SelectNeededShelterItems();

            Assert.AreEqual(expectedNumber, shelterItems.Count);
        }// End TestRetrieveNeededItemList()
Exemple #2
0
        }// End RetrieveShelterItems()

        /// <summary>
        /// NAME: Matt Deaton
        /// DATE: 2020-03-07
        /// CHECKED BY: Steven Coonrod
        ///
        /// Logic Layer method for retriving a list items needed for the shelter.
        ///
        /// </summary>
        /// <remarks>
        /// UPDATED BY:
        /// UPDATED:
        /// CHANGE:
        ///
        /// </remarks>
        /// <param name="shelterThreshold"></param>
        /// <returns></returns>
        public List <Item> RetrieveNeededShelterItems()
        {
            List <Item> items = null;

            try
            {
                items = _itemAccessor.SelectNeededShelterItems();
            }
            catch (Exception ex)
            {
                throw new ApplicationException("No Items Found.", ex);
            }
            return(items);
        }// End RetrieveNeededShelterItems()