Esempio n. 1
0
        public void TestFind()
        {
            string title = "Test Map";
            InteractiveMap map = new InteractiveMap();
            map.Title = title;
            map.CreateAndFlush();

            InteractiveMap dbMap = InteractiveMap.Find(map.Id);
            Assert.IsNotNull(dbMap);
            Assert.AreEqual(title, dbMap.Title);
        }
Esempio n. 2
0
        public void TestGetMetadata()
        {
            InteractiveMap map = new InteractiveMap();
            map.Title = "Test Map";
            map.CreateAndFlush();

            Metadata metadata = new Metadata();
            metadata.Owner = map;
            metadata.CreateAndFlush();

            InteractiveMap dbMap = InteractiveMap.Find(map.Id);
            Assert.AreEqual(metadata, map.GetMetadata());
        }