Esempio n. 1
0
        public void ReportAttendeeRangeTrue()
        {
            eventRepo.ClearEvents();
            DateTime dateTime = DateTime.Parse("10/31/2020");

            eventRepo.AddEvent(Events.AmusementPark, 50, dateTime, 1000.00m);
            Reports reports = new Reports();

            Assert.IsTrue(reports.GetMatchingEvents(eventRepo.GetEvents(), 50, 50).Count == 1);
        }
Esempio n. 2
0
        public void ClearEventsTrue()
        {
            EventRepo eventRepo    = new EventRepo();
            int       initialCount = eventRepo.GetEvents().Count;
            DateTime  dateTime     = DateTime.Parse("10/31/2020");

            eventRepo.AddEvent(Events.AmusementPark, 50, dateTime, 12250.50m);
            Assert.IsTrue(eventRepo.ClearEvents());
        }