Exemple #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));
        }
		public void RemoveEvent(Event selectedEvent)
		{
			Events.Remove(selectedEvent);
			PersistEvents();
		}
		// Methods
		public void AddEvent(Event newEvent)
		{
			Events.Add(newEvent);
			PersistEvents();
		}
 public void Remove(Event eventToBeRemoved)
 {
     Events.Remove(eventToBeRemoved);
 }
 public void Add(Event newEvent)
 {
     Events.Add(newEvent);
     Persistency.PersistencyService.Save(Events);
 }
 public void AddEvent(Event newEvent)
 {
     Eventlist.Add(newEvent);
 }