Ejemplo n.º 1
0
        public void SearchTest()
        {
            IAVISservice Test         = new AVISservice();
            Reservation  newRes       = Test.OpretReservation("Ford Focus", "Odense", DateTime.Today, DateTime.Today);
            Reservation  searchResult = Test.Search("Odense");

            Assert.AreEqual(newRes, searchResult);
        }
Ejemplo n.º 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));
        }