Пример #1
0
 public CynDataService(SiteSettings siteSettings)
 {
     _siteSettings         = siteSettings;
     _blogToPost           = new CreatePost(_siteSettings);
     _dataReaderToPost     = (ITransmorgifier <IDataReader, Post>)_blogToPost;
     _dataReaderToBlogInfo = new CreateBlogInfo();
 }
Пример #2
0
        public CynDataService(ITransmorgifier <Blog, Post> blogToPost,
                              ITransmorgifier <IDataReader, BlogInfo> dataReaderToBlogInfo,
                              ITransmorgifier <IDataReader, CategoryInfo> dataReaderToCategoryInfo,
                              ITransmorgifier <IDataReader, Post> dataReaderToPost,
                              ITransmorgifier <Post, Blog> postToBlog,
                              SiteSettings siteSettings)
        {
            _blogToPost           = blogToPost;
            _dataReaderToBlogInfo = dataReaderToBlogInfo;
//            _dataReaderToCategoryInfo = dataReaderToCategoryInfo;
            _dataReaderToPost = dataReaderToPost;
//            _postToBlog = postToBlog;
            _siteSettings = siteSettings;
        }