public void GetCategorizedSessionsFromListByField_FromSpecifiedList_ReturnsTwoLists()
        {
            var inList = _sessionRepo.AllItems.Where(x => x.Id != "04");
            var lists  = SessionWorkflowInformant.GetCategorizedSessionsFromListByField(inList, SessionFileType.kGenreFieldName);

            Assert.AreEqual(2, lists.Count);
            Assert.AreEqual(2, lists["SessionsView.MetadataEditor.Genre.formulaic_discourse"].Count());
            Assert.AreEqual(2, lists["SessionsView.MetadataEditor.Genre.singing"].Count());
        }
예제 #2
0
 public void GetCategorizedSessionsFromListByField_FromSpecifiedList_ReturnsTwoLists()
 {
     using (new ApplicationContainer())
     {
         var inList = _sessionRepo.AllItems.Where(x => x.Id != "04");
         var lists  = SessionWorkflowInformant.GetCategorizedSessionsFromListByField(inList, SessionFileType.kGenreFieldName);
         Assert.AreEqual(2, lists.Count);
         Assert.AreEqual(2, lists["Formulaic Discourse"].Count());
         Assert.AreEqual(2, lists["Singing"].Count());
     }
 }