Ejemplo n.º 1
0
 public void Check_That_nonPublished_Article_notLoaded([Values(ContentAccess.Live)] ContentAccess access, [MappingValues] Mapping mapping)
 {
     using (var context = GetDataContext(access, mapping))
     {
         var status            = ValuesHelper.GetNonPublishedStatus(mapping);
         var nonpublishedItems = context.PublishedNotPublishedItems.Where(x => x.StatusTypeId == status).ToArray();
         Assert.That(nonpublishedItems, Is.Null.Or.Empty);
     }
 }
Ejemplo n.º 2
0
 public void Check_That_nonPublished_Article_isLoaded([Values(ContentAccess.StageNoDefaultFiltration)] ContentAccess access, [MappingValues] Mapping mapping)
 {
     using (var context = GetDataContext(access, mapping))
     {
         var status = ValuesHelper.GetNonPublishedStatus(mapping);
         var items  = context.PublishedNotPublishedItems.Where(x => x.StatusTypeId == status).ToArray();
         Assert.That(items, Is.Not.Null.And.Not.Empty);
     }
 }