public void EntrySetCarLocation()
 {
     eProc = new EventProcessor();
     EntryEvent ev = new EntryEvent(new DateTime(2015, 09, 01), parkingBarcelona, newCar);
     eProc.Process(ev);
     Assert.AreEqual(parkingBarcelona, newCar.Parking);
 }
        public void CheckEventsOnLog()
        {
            eProc = new EventProcessor();
            EntryEvent ev = new EntryEvent(new DateTime(2015, 09, 01), parkingBarcelona, newCar);
            eProc.Process(ev);

            Assert.AreEqual(eProc.Log[0], ev);
        }
        public void CheckEventOcurredTime()
        {
            eProc = new EventProcessor();
            DateTime ocurred = new DateTime(2015, 09, 01);
            EntryEvent ev = new EntryEvent(ocurred, parkingBarcelona, newCar);
            eProc.Process(ev);

            Assert.AreEqual(ocurred, ev.Ocurred);
        }