public void UpdateEventTest() { DefaultDataGeneration filler = new DefaultDataGeneration(); DataChamber data = new DataChamber(); DatabaseActions test = new DatabaseActions(data, filler); Users newUser = new Users(1, "Test", "Testowy", 1908); Catalog newCatalog = new Catalog("Lokok", "Test", 1908, "Testowy", 9); ProcessState newProcessState = new ProcessState(newCatalog, "Testowy", 1789, "Bad"); DateTime checkOutDate = new DateTime(2000, 10, 12); DateTime checkInDate = new DateTime(1990, 4, 6); Event newEvent = new Event(newProcessState, newUser, checkOutDate, checkInDate); test.UpdateEvent(2, newEvent); Assert.AreEqual(newEvent, test.ReadEvent(2)); }