예제 #1
0
        public void TestEventCreation()
        {
            Boolean InsertCompleted    = false;
            Boolean TestThrewException = false;

            try
            {
                InsertCompleted = ep.InsertEvent(testEvent.Name, testEvent.EventType, testEvent.Location,
                                                 testEvent.Date, testEvent.Description, testEvent.MaxNumberOfCharacters, testEvent.GuildID);
            }catch (Exception)
            {
                TestThrewException = true;
            }finally
            {
                //Cleanup
                int id = ea.GetIdOfEvent(testEvent.Name);
                ea.DeleteEventByID(id);
            }

            Assert.IsTrue(InsertCompleted);
            Assert.IsFalse(TestThrewException);
        }
예제 #2
0
 public void TestCleanup()
 {
     ea.DeleteEventByID(testEvent.EventID);
 }
예제 #3
0
파일: EventProcessor.cs 프로젝트: Dymus/gms
 public bool DeleteEventByID(int eventID)
 {
     return(eventAccess.DeleteEventByID(eventID));
 }