/// <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; } }
public void AddEvent_ValidEvent() { int expected = 1; setup(); int actual = EventAccessor.AddEvent(eventToTest); EventAccessor.DeleteEventTestItem(eventToTest); Assert.AreEqual(expected, actual); }
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); }
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); }