示例#1
0
 /// <summary>
 /// Bryan Hurst
 /// Created: 2015/04/03
 /// Deletes information concerning the test event
 /// </summary>
 /// <param name="testEvent"></param>
 /// <returns></returns>
 public int DeleteTestEvent(Event testEvent)
 {
     try
     {
         return(EventAccessor.DeleteEventTestItem(testEvent));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
示例#2
0
        public void AddEvent_ValidEvent()
        {
            int expected = 1;

            setup();

            int actual = EventAccessor.AddEvent(eventToTest);

            EventAccessor.DeleteEventTestItem(eventToTest);

            Assert.AreEqual(expected, actual);
        }
示例#3
0
        public void UpdateEvent_ValidEvent()
        {
            int expected = 1;

            setup();
            EventAccessor.AddEvent(eventToTest);
            eventToTest = getEventObjectID(list);

            int actual = EventAccessor.UpdateEvent(eventToTest, eventToEdit);

            EventAccessor.DeleteEventTestItem(eventToEdit);

            Assert.AreEqual(expected, actual);
        }
示例#4
0
        public void GetEvent_Valid()
        {
            setup();

            string expected = eventToTest.EventItemName;

            EventAccessor.AddEvent(eventToTest);
            eventToEdit = getEventObjectID(list);

            Event actual = EventAccessor.GetEvent(eventToEdit.EventItemID.ToString());

            EventAccessor.DeleteEventTestItem(eventToTest);

            Assert.AreEqual(expected, actual.EventItemName);
        }