public void UpdateEventTest() { IEventService service = new EventService.EventService(); Event e = new Event(); service.UpdateEvent(e); }
public void DeleteEventTest() { IEventService service = new EventService.EventService(); string eventID = "1"; bool response = service.DeleteEvent(eventID); Assert.AreEqual(true, response); }
public void ReadEventTest() { IEventService service = new EventService.EventService(); string eventID = "1"; Event response = service.ReadEventDetails(eventID); Assert.IsInstanceOfType(response, typeof(Event)); }
public void CreateEventTest() { IEventService service = new EventService.EventService(); Event e = new Event(); var response = service.CreateEvent(e); int.TryParse(response, out int createdEventID); Assert.IsInstanceOfType(createdEventID, typeof(int)); }