Ejemplo n.º 1
0
        public void getLightContentRerefereceTest()
        {
            using (WebActionExecutor executor = new WebActionExecutor()) {
                IContentContainer container = getContainer();
                TestContentType   c         = TestContentType.getARandomTestContentType(enforce_a_reference: false);
                container.Add(c);
                LightContentReferece light_reference = container.GetLightContentRereferece <TestContentType>().FirstOrDefault();

                Assert.AreEqual(light_reference.ReferenceText, c.ReferenceText);
                Assert.AreEqual(light_reference.guid, c.guid);
            }
        }
Ejemplo n.º 2
0
 public IEnumerable <LightContentReferece> GetLightContentRereferece <T>() where T : IContent, new()
 {
     return(_storage.GetLightContentRereferece <T>());
 }