Пример #1
0
 public IEnumerable <CollectionDto> GetCollections()
 {
     using (IUnitOfWork uow = UnitOfWorkFactory.Instance.Start(DataStoreResolver.CMSDataStoreKey))
     {
         CollectionFacade     facade = new CollectionFacade(uow);
         List <CollectionDto> result = facade.RetrieveAllCollection(new CollectionConverter());
         return(result);
     }
 }
        public void TestAll()
        {
            CollectionFacade     facade = new CollectionFacade(UnitOfWork);
            List <CollectionDto> result = facade.RetrieveAllCollection(new CollectionConverter());

            if (result != null)
            {
            }

            CollectionDto instance = facade.RetrieveOrNewCollection(1, new CollectionConverter());

            if (instance != null)
            {
            }
        }