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); }
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()); }