示例#1
0
        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);
        }
示例#2
0
        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));
        }