Esempio n. 1
0
        public void Test_addSomeTickets()
        {
            EventRepository evRep = EventRepository.getInstance();

            string evName = "Hajduk-Inter";

            Category cat = new Category("Sport");
            Location loc = new Location("Poljud", "neka adresa", "neki opis");
            Event    ev  = new Event(evName, "utakmica", 200, 10000, DateTime.Now.AddDays(5), cat, loc);

            evRep.addEvent(ev);

            evRep.AddTickets(1000, evName);

            Event ev2 = evRep.getEventByName(evName);

            Assert.AreEqual(11000, ev2.Quantity);
        }