Example #1
0
        public AtomCabCollection GetCabs(int productId, int fileId, int eventId)
        {
            AtomCabCollection cabs = new AtomCabCollection();

            foreach (TestDatabaseProduct product in m_Products)
            {
                if (product.Product.Product.Id == productId)
                {
                    foreach (TestDatabaseFile file in product.Files)
                    {
                        if (file.File.File.Id == fileId)
                        {
                            foreach (TestDatabaseEvent thisEvent in file.Events)
                            {
                                if (thisEvent.TheEvent.Event.Id == eventId)
                                {
                                    return(thisEvent.Cabs);
                                }
                            }
                        }
                    }
                }
            }
            return(cabs);
        }
Example #2
0
        /// <summary>
        /// Returns a list of Cab data.
        /// </summary>
        /// <param name="theEvent">Event for which the event info is required.</param>
        /// <returns>Collection of event infos.</returns>
        public AtomCabCollection GetCabs(AtomEvent theEvent)
        {
            AtomCabCollection cabs = new AtomCabCollection();

            return(m_TestDatabase.GetCabs(theEvent.ProductId, theEvent.FileId, theEvent.Event.Id));
        }