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 AddEventTrue()
        {
            EventRepo eventRepo = new EventRepo();
            DateTime  dateTime  = DateTime.Parse("10/31/2020");

            Assert.IsTrue(eventRepo.AddEvent(Events.AmusementPark, 50, dateTime, 12250.50m));
        }
Esempio n. 3
0
        private bool SeedUser()
        {
            EventRepo eventRepo = new EventRepo();
            //eventRepo.
            DateTime dateTime = DateTime.Parse("10/31/2020");

            return(eventRepo.AddEvent(Events.AmusementPark, 50, dateTime, 1000.00m));
        }
Esempio n. 4
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());
        }