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); }
public void AddEventTrue() { EventRepo eventRepo = new EventRepo(); DateTime dateTime = DateTime.Parse("10/31/2020"); Assert.IsTrue(eventRepo.AddEvent(Events.AmusementPark, 50, dateTime, 12250.50m)); }
private bool SeedUser() { EventRepo eventRepo = new EventRepo(); //eventRepo. DateTime dateTime = DateTime.Parse("10/31/2020"); return(eventRepo.AddEvent(Events.AmusementPark, 50, dateTime, 1000.00m)); }
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()); }