Example #1
0
        public void UpdateEventTest()
        {
            IEventService service = new EventService.EventService();
            Event         e       = new Event();

            service.UpdateEvent(e);
        }
Example #2
0
        public void DeleteEventTest()
        {
            IEventService service  = new EventService.EventService();
            string        eventID  = "1";
            bool          response = service.DeleteEvent(eventID);

            Assert.AreEqual(true, response);
        }
Example #3
0
        public void ReadEventTest()
        {
            IEventService service  = new EventService.EventService();
            string        eventID  = "1";
            Event         response = service.ReadEventDetails(eventID);

            Assert.IsInstanceOfType(response, typeof(Event));
        }
Example #4
0
        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));
        }