예제 #1
0
        public void TestAdd()
        {
            EventCatalogSingleton EventTest = new EventCatalogSingleton();
            Event Eventet = new Event(DateTime.Now, 1, "Beskrivelse", "Navn", "Sted");
            EventTest.Add(Eventet);

            Assert.AreEqual(true, EventTest.Events.Contains(Eventet));
        }
예제 #2
0
		public void RemoveEvent(Event selectedEvent)
		{
			Events.Remove(selectedEvent);
			PersistEvents();
		}
예제 #3
0
		// Methods
		public void AddEvent(Event newEvent)
		{
			Events.Add(newEvent);
			PersistEvents();
		}
예제 #4
0
 public void Remove(Event eventToBeRemoved)
 {
     Events.Remove(eventToBeRemoved);
 }
예제 #5
0
 public void Add(Event newEvent)
 {
     Events.Add(newEvent);
     Persistency.PersistencyService.Save(Events);
 }
예제 #6
0
 public void AddEvent(Event newEvent)
 {
     Eventlist.Add(newEvent);
 }