public void OpretBestillingTest() { bool tester = false; Reservation TestRes = TestReservation(); db.Insert(TestRes); foreach (Reservation res in db.DB) { if (res.Equals(TestRes)) { tester = true; } } Assert.IsTrue(tester); }
public void CreateTest() { IAVISservice Test = new AVISservice(); Reservation newRes = Test.OpretReservation("Ford Focus", "Odense", DateTime.Today, DateTime.Today); FakeDB DB = new FakeDB(); DB.Insert(newRes); Assert.IsTrue(DB.DB.Contains(newRes)); }