public void TestRetrieveShelterItemList()
        {
            //ARRANGE
            int         expectedNumber = 5;
            List <Item> shelterItems   = new List <Item>();

            //ACT
            shelterItems = _itemAccessor.SelectShelterItems(true);

            //ASSERT
            Assert.AreEqual(expectedNumber, shelterItems.Count);
        }// End TestRetrieveShelterItemList()
Ejemplo n.º 2
0
        /// <summary>
        /// NAME: Matt Deaton
        /// DATE: 3/4/2020
        /// CHECKED BY: Steven Coonrod
        ///
        /// Logic Layer method for retriving a list items for the shelter.
        ///
        /// </summary>
        /// <remarks>
        /// UPDATED BY:
        /// UPDATED:
        /// CHANGE:
        ///
        /// </remarks>
        /// <returns>List of Items inteded for shelter use</returns>
        public List <Item> RetrieveShelterItems(bool shelterItem = true)
        {
            List <Item> items = null;

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