Ejemplo n.º 1
0
        public PublicModule(IApplication application, IRootPathProvider rootPathProvider,
		                    IArticleRepository articleRepository, IPageRepository pageRepository)
            : base(application)
        {
            this._ArticleRepository = articleRepository;
            this._PageRepository = pageRepository;
            this._rootPathProvider = rootPathProvider;

            // Bind the HTTP POST verb with /robots.txt with a response filled by text
            this.Get["/robots.txt"] = GetRobotTxt;

            // Bind the HTTP POST verb with /sitemap.xml to the GetSitemap method
            this.Get["/sitemap.xml"] = GetSitemap;

            // Define a route for urls "/{seoTitle}" which will returns the article matching the specified slug
            this.Get["/{category}/{seoTitle}"] = parameters => {
                // [BUG]: /sitemap.xml n'est pas prioritaire sur /{seoTitle}
                if(parameters.seoTitle == "rss")
                    return GetRSSFeed(parameters);
                // fin de [BUG]
                return GetStaticPage(parameters);
            };

            // Define a route for urls "/{seoTitle}" which will returns the article matching the specified slug
            this.Get["/{seoTitle}"] = parameters => {
                // [BUG]: /sitemap.xml n'est pas prioritaire sur /{seoTitle}
                if(parameters.seoTitle == "sitemap")
                    return GetSitemap(parameters);
                // fin de [BUG]
                return GetStaticPage(parameters);
            };
        }
Ejemplo n.º 2
0
        public ProductApiController(IDocumentRepository _documentRepository,
            ITypeOfTaskRepository _typeOfTaskRepository,
            IFormatsNameRepository _formatsName,
            IProductRepository _productRepository,
            ITaskExecutorRepository _taskExecutorRepository,
            IArticleRepository _articleRepository,
            ICustomerSupplierRepository _customerSupplierRepository,
            IMenuProductRepository _menuProduct,
            ICostDetailRepository _costDetailRepository,
            ITaskCenterRepository _taskCenterRepository)
        {
            typeOfTaskRepository = _typeOfTaskRepository;
            documentRepository = _documentRepository;
            productRepository = _productRepository;
            taskExecutorRepository = _taskExecutorRepository;
            articleRepository = _articleRepository;
            customerSupplierRepository = _customerSupplierRepository;
            menu = _menuProduct;
            costDetailRepository = _costDetailRepository;
            taskCenterRepository = _taskCenterRepository;

            this.Disposables.Add(typeOfTaskRepository);
            this.Disposables.Add(documentRepository);
            this.Disposables.Add(productRepository);
            this.Disposables.Add(taskExecutorRepository);
            this.Disposables.Add(articleRepository);
            this.Disposables.Add(customerSupplierRepository);
            this.Disposables.Add(menu);
            this.Disposables.Add(costDetailRepository);
            this.Disposables.Add(taskCenterRepository);

        }
Ejemplo n.º 3
0
 public ArticleController(IArticleRepository ArticleRepository, IUserAccountRepository userRepository)
 {
     _RArticle = ArticleRepository;
     _RDefineUser = userRepository;
     EArticle = new ArticleExtentions(_RArticle, _RDefineUser);
     EDefineUser = new UserAccountExtentions(_RDefineUser);
 }
Ejemplo n.º 4
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ArticleModule" />.
        /// </summary>
        /// <param name="repository">The article's repository</param>
        public ArticleModule(IApplication application, IArticleRepository articleRepository, IRootPathProvider rootPathProvider)
            : base(application)
        {
            this._ArticleRepository = articleRepository;
            this._RootPathProvider = rootPathProvider;

            // Bind the HTTP GET verb to the ListArticles method
            this.Get["/articles"] = ListArticles;

            // Bind the HTTP GET verb to the ListHomeArticles method
            this.Get["/articles/homeArticles"] = ListHomeArticles;

            // Bind the HTTP GET verb to the ListSliderArticles method
            this.Get["/articles/sliderArticles"] = ListSliderArticles;

            // Define a route for urls "/articles/{seoTitle}" which will returns the article matching the specified slug
            this.Get["/articles/{seoTitle}"] = GetArticle;

            // Define a route for urls "/article/{seoTitle}" which will returns the article matching the specified slug
            this.Get["/article/apercu/{seoTitle}"] = GetArticleBySeoTitle;

            // Define a route for urls "/article/{seoTitle}" which will returns the article matching the specified slug
            this.Get["/article/{seoTitle}"] = GetArticleBySeoTitle;

            // Define a route for urls "/articles/byId" which will returns the article matching the specified id
            this.Get["/articles/articles/byId"] = GetArticlebyId;

            // Bind the HTTP GET verb to the ListEvents method
            this.Get["/actualites/actualites"] = ListPublicArticles;
        }
Ejemplo n.º 5
0
        public AllowAuthorAttribute()
        {
            isAccess = false;

            _userRepository = DependencyResolver.Current.GetService<IUserRepository>();
            _articleRepository = DependencyResolver.Current.GetService<IArticleRepository>();
        }
Ejemplo n.º 6
0
 public HomeController(IArticleRepository repository, IAboutUsRepository aboutUsRepository, ICafeRepository cafeRepository, IOutputCacheDependencies outputCacheDependencies)
 {
     mArticleRepository = repository;
     mAboutUsRepository = aboutUsRepository;
     mCafeRepository = cafeRepository;
     mOutputCacheDependencies = outputCacheDependencies;
 }
Ejemplo n.º 7
0
        public AdministrationService(
            IUserRepository userRepository,
            IArticleRepository articleRepository,
            IRepository<ReviewTemplate> reviewTemplateRepository,
            IArticleReviewerRepository articleReviewerRepository,
            IRepository<AttributeDataType> dataTypesRepository,
            IRepository<Category> categoryRepository,
            IRepository<Degree> degreeRepository,
            IRepository<Page> pagesRepository,
            IRepository<Language> languageRepository,
            IConfigurationRepository configurationRepository,
            IRepository<ErrorLog> errorLogRepository
            )
        {
            this.userRepository = userRepository;
            this.articleRepository = articleRepository;
            this.reviewTemplateRepository = reviewTemplateRepository;
            this.articleReviewerRepository = articleReviewerRepository;
            this.dataTypesRepository = dataTypesRepository;
            this.categoryRepository = categoryRepository;
            this.degreeRepository = degreeRepository;
            this.pagesRepository = pagesRepository;
            this.languageRepository = languageRepository;
            this.configurationRepository = configurationRepository;
            this.errorLogRepository = errorLogRepository;

            callResult = new CallResult();
        }
Ejemplo n.º 8
0
 public ActicleCommentService(IArticleCommentRepository articleDal, IArticleRepository articleRepository, IMessageRemindRepository messageRemindRepository, IArticleLikeRepository articleLikeRepository, IArticleReplyCommentRepository articleReplyCommentRepository)
 {
     _acticleCommentRepository = articleDal;
     _articleRepository = articleRepository;
     _messageRemindRepository = messageRemindRepository;
     _articleLikeRepository = articleLikeRepository;
     _articleReplyCommentRepository = articleReplyCommentRepository;
 }
Ejemplo n.º 9
0
 public AdminController(
     ICategoryRepository categoryRepository,
     IArticleRepository articleRepository
 )
 {
     _categoryRepository = categoryRepository;
     _articleRepository = articleRepository;
 }
Ejemplo n.º 10
0
 public ArticlesController(IArticleRepository repository)
 {
     if (repository == null)
     {
         throw new ArgumentNullException("repository");
     }
     this.repository = repository;
 }
Ejemplo n.º 11
0
 public ArticleService(ICategoryService categoryService, IArticleRepository articleRepository, IRoleService roleService, ISettingService settingService, IUserService userService)
 {
     _userService = userService;
     _articleRepository = articleRepository;
     _roleService = roleService;
     _settingService = settingService;
     _categoryService = categoryService;
 }
Ejemplo n.º 12
0
        public HomeModule(IApplication application, IArticleRepository articleRepository, IRootPathProvider rootPathProvider)
            : base(application)
        {
            this._ArticleRepository = articleRepository;
            this._RootPathProvider = rootPathProvider;

            // Render home page = public view
            Get["/"] = Public;
        }
Ejemplo n.º 13
0
 public ArticlesController(
     IArticleRepository articleRepository,
     ICommentRepository commentRepository,
     HttpContextBase baseContext)
 {
     this._httpContext = baseContext;
     this._articleRepository = articleRepository;
     this._commentRepository = commentRepository;
 }
Ejemplo n.º 14
0
        public FeedPageViewModel(IArticleRepository articleRepository, IHistoryNavigationService historyNavigationService)
        {
            _articleRepository = articleRepository;
            _historyNavigationService = historyNavigationService;

            if (IsInDesignMode)
            {
                SelectFeed(articleRepository.GetActiveSources()[0].ActiveFeeds[0]);
            }
        }
Ejemplo n.º 15
0
 public SharedController(IMenuRepository menuRepository, 
                         IOuterLinkRepository outerLinkRepository,
                         ISliderRepository sliderRepository,
                         IArticleRepository articleRepository)
 {
     this.menuRepository = menuRepository;
     this.outerLinkRepository = outerLinkRepository;
     this.sliderRepository = sliderRepository;
     this.articleRepository = articleRepository;
 }
Ejemplo n.º 16
0
 public ArticlesController(
     IArticleRepository articleRepository, 
     ICommentRepository commentRepository,
     HttpContextBase baseContext)
 {
     this._httpContext        = baseContext;
     this._articleRepository = articleRepository;
     this._commentRepository = commentRepository;
     log4net.Config.XmlConfigurator.Configure();
 }
 public CompositeController(IUnitOfWork unitOfWork, IArticleRepository articleRepository, IBioRepository bioRepository,
     IEventRepository eventRepository, IQARepository qaRepository, IDownloadRepository downloadRepository, ISearchRepository searchRepository)
     : base(unitOfWork)
 {
     _articleRepository = articleRepository;
     _bioRepository = bioRepository;
     _eventRepository = eventRepository;
     _qaRepository = qaRepository;
     _downloadRepository = downloadRepository;
     _searchRepository = searchRepository;
 }
Ejemplo n.º 18
0
 public ArticleController(
     ICommandBus commandBus, 
     IArticleRepository articleRepository,
     ICategoryRepository categoryRepository,
     ITagRepository tagRepository)
 {
     this.commandBus = commandBus;
     this.articleRepository = articleRepository;
     this.categoryRepository = categoryRepository;
     this.tagRepository = tagRepository;
 }
Ejemplo n.º 19
0
 public HomeController(IUserRepository userRepository,
                     IArticleRepository articleRepository,
                     IPictureRepository pictureRepository,
                     ICommentRepository commentRepository,
                     ISecurityManager sequrityManager)
 {
     this._articleRepository = articleRepository;
     this._pictureRepository = pictureRepository;
     this._sequrityManager = sequrityManager;
     this._userRepository = userRepository;
     this._commentRepository = commentRepository;
 }
Ejemplo n.º 20
0
 public ContentServices(
     IUnitOfWork unitOfWork,
     IArticleRepository articleRepository,
     ICategoryRepository categoryRepository,
     ITagRepository tagRepository
 )
 {
     _unitOfWork = unitOfWork;
     _articleRepository = articleRepository;
     _categoryRepository = categoryRepository;
     _tagRepository = tagRepository;
 }
Ejemplo n.º 21
0
 public ArticleController(ICommandBus commandBus,
     IArticleRepository articleRepository,
     ICategoryRepository categoryRepository,
     IChannelRepository channelRepository,
     IArticleChannelRepository articleChannelRepository
     )
 {
     this.commandBus = commandBus;
     this.articleChannelRepository = articleChannelRepository;
     this.channelRepository = channelRepository;
     this.categoryRepository = categoryRepository;
     this.articleRepository = articleRepository;
 }
Ejemplo n.º 22
0
        public ArticleController(IArticleRepository _articleDataRep,
            ICustomerSupplierRepository _dataRepCS,
            IWarehouseRepository _warehouseDataRep,
            ITaskExecutorRepository _taskExecutorRep)
        {
            articleRepository = _articleDataRep;
            customerSupplierRepository = _dataRepCS;
            warehouseRepository = _warehouseDataRep;
            taskExecutorRepository = _taskExecutorRep;

            this.Disposables.Add(articleRepository);
            this.Disposables.Add(customerSupplierRepository);
            this.Disposables.Add(warehouseRepository);
            this.Disposables.Add(taskExecutorRepository);
        }
Ejemplo n.º 23
0
        public MainPageViewModel(IProgressService progressService, IArticleRepository articleRepository, ISettingsRepository settingsRepository, IHistoryNavigationService historyNavigationService, IDialogService dialogService, IPermissionsService permissionsService)
        {
            _articleRepository = articleRepository;
            _historyNavigationService = historyNavigationService;
            _permissionsService = permissionsService;

            _openSettingsCommand = new RelayCommand(OpenSettings);
            _openInfoCommand = new RelayCommand(OpenInfo);
            _refreshCommand = new LoadingRelayCommand(Refresh, () => _canRefresh, true);
            _selectArticleCommand = new RelayCommand<ArticleModel>(SelectArticle);
            _selectFeedCommand = new RelayCommand<FeedModel>(SelectFeed);

            _permissionsService.PermissionsChanged += PermissionsServiceOnPermissionsChanged;

            Sources = _articleRepository.GetActiveSources();

            if (!IsInDesignMode)
            {
                Initialize();
            }
        }
Ejemplo n.º 24
0
        public SettingsPageViewModel(ISettingsRepository settingsRepository, IArticleRepository articleRepository, IPlatformCodeService platformCodeService, IPermissionsService permissionsService)
        {
            _settingsRepository = settingsRepository;
            _articleRepository = articleRepository;
            _platformCodeService = platformCodeService;
            _permissionsService = permissionsService;

            Sources = _articleRepository.GetAllSources();
            Settings = _settingsRepository.GetEditSettings();
            foreach (var baseSettingModel in Settings)
                baseSettingModel.PropertyChanged += BaseSettingModelOnPropertyChanged;


            _saveCommand = new LoadingRelayCommand(Save, () => _anythingChanged, true);
            _switchFeedStatusCommand = new LoadingRelayCommand<FeedModel>(SwitchFeedStatus, f => true, true);
            _switchSourceStatusCommand = new LoadingRelayCommand<SourceModel>(SwitchSourceStatus, f => true, true);
            _resetApplicationCommand = new LoadingRelayCommand(ResetApplication, () => true, true);

            if (!IsInDesignMode)
                InitializeSettingsAsync();
        }
Ejemplo n.º 25
0
        public ArticlePageViewModel(ISettingsRepository settingsRepository, IArticleRepository articleRepository, IPlatformCodeService platformCodeService)
        {
            _settingsRepository = settingsRepository;
            _articleRepository = articleRepository;
            _platformCodeService = platformCodeService;

            _setDisplayState = new RelayCommand<DisplayState>(SetDisplayState);

            _makeFontBiggerCommand = new RelayCommand(MakeFontBigger, () => CanMakeFontBigger);
            _makeFontSmallerCommand = new RelayCommand(MakeFontSmaller, () => CanMakeFontSmaller);
            _favoriteCommand = new RelayCommand(Favorite);
            _openInBrowserCommand = new RelayCommand(OpenInBrowser, () => CanOpenInBrowser);
            _shareCommand = new RelayCommand(Share);
            _reloadArticleCommand = new RelayCommand(ReloadArticle, () => CanReloadArticle);

            _goToStartCommand = new RelayCommand(GoToStart, () => CanGoToStart);
            _goLeftCommand = new RelayCommand(GoLeft, () => CanGoLeft);
            _goRightCommand = new RelayCommand(GoRight, () => CanGoRight);

            _startCommand = new RelayCommand(Start, () => CanStart);

            _increaseSpeedCommand = new RelayCommand(IncreaseSpeed, () => CanIncreaseSpeed);
            _decreaseSpeedCommand = new RelayCommand(DecreaseSpeed, () => CanDecreaseSpeed);

            _chooseFontCommand = new RelayCommand<string>(ChooseFont, CanChooseFont);

            if (IsInDesignMode)
            {
                FontSize = 20;
                ReadingSpeed = 300;
                SelectArticle(_articleRepository.GetInfoArticle());
            }
            else
            {
                Initialize();
            }
        }
Ejemplo n.º 26
0
 public ArticleController(IArticleRepository articlesRepository)
 {
     _articlesRepository = articlesRepository;
 }
Ejemplo n.º 27
0
 public ArticlesController(IArticleRepository repo, IMapper mapper, IAuthorizationService authService)
 {
     _repo        = repo;
     _mapper      = mapper;
     _authService = authService;
 }
Ejemplo n.º 28
0
 public CsvDbUpdateService(IBatchUpdateService articleService, IFieldRepository fieldRepository, IContentRepository contentRepository, IArticleRepository articleRepository)
 {
     _contentRepository = contentRepository;
     _articleRepository = articleRepository;
     _fieldRepository   = fieldRepository;
     _articleService    = articleService;
 }
Ejemplo n.º 29
0
 public CommentsController(IArticleRepository articleRepository, ICommentRepository commentRepository)
 {
     this.articleRepository = articleRepository;
     this.commentRepository = commentRepository;
 }
Ejemplo n.º 30
0
 public ArticleValidatorService(IArticleRepository articleRepository)
 {
     _articleRepository = articleRepository;
 }
Ejemplo n.º 31
0
 public ArticleService(IArticleRepository articleRepository, ICache cache)
 {
     _articleRepository = articleRepository;
     _cache = cache;
 }
Ejemplo n.º 32
0
 public SeedingController(IArticleRepository articleRepository, IMapper mapper)
 {
     _articleRepository = articleRepository;
     _mapper            = mapper;
 }
Ejemplo n.º 33
0
 public FournisseurArticleService(IFournisseurArticleRepository fournisseurArticleRepository, IFichetierRepository tiersRepository, IArticleRepository articleRepository, IUnitOfWork unitOfWork)
 {
     this.fournisseurArticleRepository = fournisseurArticleRepository;
     this.tiersRepository   = tiersRepository;
     this.articleRepository = articleRepository;
     this.unitOfWork        = unitOfWork;
 }
Ejemplo n.º 34
0
 public ArticleCongiuntivoController(IArticleRepository article, IArticleTypeRepository articleType)
 {
     _article     = article;
     _articleType = articleType;
 }
Ejemplo n.º 35
0
 public ArticleSearchService(IArticleRepository articleRepository)
 {
     this.articleRepository = articleRepository;
 }
 public ArticlesController(IArticleRepository repository)
 {
     _repository = repository;
 }
Ejemplo n.º 37
0
 public ArticleRepositoryFacade(IArticleRepository articleRepository, ICategoryRepository categoryRepository)
 {
     this._articleRepository  = articleRepository;
     this._categoryRepository = categoryRepository;
 }
Ejemplo n.º 38
0
 //构造器注入
 public ArticleController(IArticleRepository repository)
 {
     this.repository = repository;
 }
Ejemplo n.º 39
0
 public ArticleController(IArticleRepository repository)
 {
     ArticleRepository = repository ?? throw new ArgumentNullException(nameof(repository));
 }
Ejemplo n.º 40
0
 public AddArticleRequestHandler(IIssueRepository issueRepository, IArticleRepository articleRepository)
 {
     _issueRepository   = issueRepository;
     _articleRepository = articleRepository;
 }
 public ReturnFromClientBySaleAcceptanceDateIndicatorService(IReturnFromClientBySaleAcceptanceDateIndicatorRepository returnFromClientBySaleAcceptanceDateIndicatorRepository,
                                                             IArticleRepository articleRepository)
     : base(returnFromClientBySaleAcceptanceDateIndicatorRepository, articleRepository)
 {
 }
Ejemplo n.º 42
0
 public ArticleService(IArticleRepository articleRepository) => _articleRepository = articleRepository;
 public ArticleBll(IArticleRepository <T> repository)
 {
     _repository = repository;
 }
 public ArticleService(IUnitOfWork unitOfWork, IArticleRepository articleRepository)
 {
     _unitOfWork        = unitOfWork;
     _articleRepository = articleRepository;
 }
Ejemplo n.º 45
0
 public ArticleLogic(IArticleRepository repo)
 {
     _repo = repo;
 }
Ejemplo n.º 46
0
 public ArticlesService(IArticleRepository articleRepository, IUnitOfWork unitOfWork)
 {
     this.articlesRepository = articleRepository;
     this.unitOfWork         = unitOfWork;
 }
Ejemplo n.º 47
0
 public CreateArticleFromLinkModel(IArticleRepository articleRepo, IClock clock)
 {
     _articleRepo = articleRepo;
     _clock       = clock;
 }
 public SupermarketStoreService(IDiscountRepository discountRepository, IPriceRepository priceRepository, IArticleRepository articleRepository, IMapper mapper)
 {
     _discountRepository = discountRepository;
     _priceRepository    = priceRepository;
     _articleRepository  = articleRepository;
     _mapper             = mapper;
 }
Ejemplo n.º 49
0
        public static void CreateBookArticles(IArticleRepository articleRepo, IBookMetaRepository bookMetaRepo)
        {
            var prenticeHall       = bookMetaRepo.FindPublisherById(1);
            var pearson            = bookMetaRepo.FindPublisherById(2);
            var thomsonReuters     = bookMetaRepo.FindPublisherById(3);
            var relxGroup          = bookMetaRepo.FindPublisherById(4);
            var penguinRandomHouse = bookMetaRepo.FindPublisherById(5);
            var woltersKluwer      = bookMetaRepo.FindPublisherById(6);
            var rheinwerk          = bookMetaRepo.FindPublisherById(7);
            var hanserVerlag       = bookMetaRepo.FindPublisherById(8);
            var cornelsen          = bookMetaRepo.FindPublisherById(9);
            var ernstKlett         = bookMetaRepo.FindPublisherById(10);

            var robertCMartin        = bookMetaRepo.FindAuthorById(1);
            var deanWampler          = bookMetaRepo.FindAuthorById(2);
            var thomasClaudiusHuber  = bookMetaRepo.FindAuthorById(8);
            var andrewTannenbaum     = bookMetaRepo.FindAuthorById(9);
            var herbertBos           = bookMetaRepo.FindAuthorById(10);
            var rolfSocher           = bookMetaRepo.FindAuthorById(11);
            var susanAbbey           = bookMetaRepo.FindAuthorById(12);
            var roderickCox          = bookMetaRepo.FindAuthorById(13);
            var laurenceHarger       = bookMetaRepo.FindAuthorById(14);
            var claireLamsdale       = bookMetaRepo.FindAuthorById(15);
            var wolfgangBiederstaedt = bookMetaRepo.FindAuthorById(16);
            var hellmutSchwarz       = bookMetaRepo.FindAuthorById(17);
            var antonioBarquero      = bookMetaRepo.FindAuthorById(18);
            var julianaBizama        = bookMetaRepo.FindAuthorById(19);
            var jaimeCorpas          = bookMetaRepo.FindAuthorById(20);
            var pedroCrovetto        = bookMetaRepo.FindAuthorById(21);
            var evaDiaz          = bookMetaRepo.FindAuthorById(22);
            var claireMarieJeske = bookMetaRepo.FindAuthorById(23);
            var aliciaJimenez    = bookMetaRepo.FindAuthorById(24);
            var javierNavarro    = bookMetaRepo.FindAuthorById(25);
            var rosamnaPardellas = bookMetaRepo.FindAuthorById(26);

            var computerCategory    = bookMetaRepo.FindCategoryById(1);
            var thrillerCategory    = bookMetaRepo.FindCategoryById(2);
            var specializedCategory = bookMetaRepo.FindCategoryById(3);
            var literatureCategory  = bookMetaRepo.FindCategoryById(4);
            var humorCategory       = bookMetaRepo.FindCategoryById(5);
            var codingCategory      = bookMetaRepo.FindCategoryById(6);
            var schoolCategory      = bookMetaRepo.FindCategoryById(7);

            var english = bookMetaRepo.FindLanguageById(1);
            var german  = bookMetaRepo.FindLanguageById(2);
            var russian = bookMetaRepo.FindLanguageById(3);
            var spain   = bookMetaRepo.FindLanguageById(4);
            var italian = bookMetaRepo.FindLanguageById(5);

            var book1 = new Book
            {
                ArticleId = 1,
                InternationalStandardBookNumber = "9780132350884",
                Title       = "Clean Code",
                SubTitle    = "A Handbook of Agile Software Craftsmanship",
                Description = "Noted software expert Robert C. Martin presents a revolutionary paradigm with Clean Code: A Handbook of Agile Software Craftsmanship . Martin has teamed up with his colleagues from Object Mentor to distill their best agile practice of cleaning code “on the fly” into a book that will instill within you the values of a software craftsman and make you a better programmer–but only if you work at it.",
                Publisher   = prenticeHall,
                Authors     = new List <Author> {
                    robertCMartin,
                    deanWampler
                },
                Categories = new List <Category> {
                    computerCategory,
                },
                Language = english
            };
            var book2 = new Book
            {
                ArticleId = 2,
                InternationalStandardBookNumber = "9780137081073",
                Title       = "The Clean Coder",
                SubTitle    = "A Code of Conduct for Professional Programmers",
                Description = "In The Clean Coder: A Code of Conduct for Professional Programmers, legendary software expert Robert C. Martin introduces the disciplines, techniques, tools, and practices of true software craftsmanship. This book is packed with practical advice–about everything from estimating and coding to refactoring and testing. It covers much more than technique: It is about attitude. Martin shows how to approach software development with honor, self-respect, and pride; work well and work clean; communicate and estimate faithfully; face difficult decisions with clarity and honesty; and understand that deep knowledge comes with a responsibility to act.",
                Publisher   = prenticeHall,
                Authors     = new List <Author> {
                    robertCMartin,
                },
                Categories = new List <Category> {
                    computerCategory,
                    literatureCategory
                },
                Language = english
            };
            var book3 = new Book
            {
                ArticleId = 3,
                InternationalStandardBookNumber = "9783836219563",
                Title       = "Windows Presentation Forms",
                SubTitle    = "WPF - Das umfassende Handbuch",
                Description = "Geballtes Wissen zum Grafik-Framework von .NET! Ob Grundlagen, XAML, GUI-Entwicklung, Datenbindung, Animationen, Multimedia oder Migration - hier finden Sie auf jede Frage eine Antwort! Grundkenntnisse in C# vorausgesetzt, ist dieses Buch sowohl zum Einstieg als auch als Nachschlagewerk optimal geeignet.",
                Publisher   = rheinwerk,
                Authors     = new List <Author> {
                    thomasClaudiusHuber,
                },
                Categories = new List <Category> {
                    computerCategory,
                    codingCategory,
                    literatureCategory
                },
                Language = german
            };
            var book4 = new Book
            {
                ArticleId = 4,
                InternationalStandardBookNumber = "9783836219563",
                Title       = "Moderne Betriebssysteme",
                SubTitle    = "Moderne Betriebssysteme (4., aktualisierte Auflage)",
                Description = "Auch in dieser komplett überarbeiteten Neuauflage des preisgekrönten Lehrbuchs stellen die Autoren wie gewohnt auf unterhaltsame Art und Weise alle Konzepte rund um das Thema Betriebssysteme vor, die man benötigt, um moderne Betriebssysteme zu verstehen und zu entwickeln. Dabei wurden den neuesten Entwicklungen der Betriebssysteme sowie der zugrunde liegenden Hardware Rechnung getragen. Das Lehrbuch enthält umfangreiche Aktualisierungen zu UNIX, Linux und Windows und behandelt erstmals auch Android als mobiles Betriebssystem. Das Kapitel zu IT-Sicherheit wurde grundlegend aktualisiert, ein neues Kapitel behandelt die Themen Virtualisierungs- und Cloud-Technologie.  Zahlreiche Abbildungen, viele Beispiele, aktuelle Fallstudien sowie über 500 Übungsaufgaben erleichtern das Verstehen und Erlernen der vorgestellten Konzepte und Theorien. Zudem stehen auf den Companion Websites zum Buch Experimentier- und Simulationswerkzeuge zu Linux und Window bereit – ideal zum Selbststudium.",
                Publisher   = rheinwerk,
                Authors     = new List <Author> {
                    andrewTannenbaum,
                    herbertBos
                },
                Categories = new List <Category> {
                    computerCategory,
                    literatureCategory
                },
                Language = german
            };
            var book5 = new Book
            {
                ArticleId = 5,
                InternationalStandardBookNumber = "9783446414457",
                Title       = "Theoretische Grundlagen der Informatik",
                SubTitle    = "",
                Description = "Das Buch bietet einen Einstieg in die theoretischen Grundlagen der Informatik. Es beschränkt sich auf die klassischen Themen: formale Sprachen, endliche Automaten und Grammatiken, Turing-Maschinen, Berechenbarkeit und Entscheidbarkeit, Komplexität. Das Konzept der Transformation zwischen den verschiedenen Formalismen zieht sich wie ein roter Faden durch das gesamte Buch. Auf eine anschauliche Vermittlung der Begriffe und Methoden der theoretischen Informatik und ihre Vertiefung in Aufgaben und Programmierprojekten wird großer Wert gelegt. Auf der zu dem Buch gehörenden Website findet sich das Lernprogramm Machines, mit dem endliche Automaten, Kellerautomaten, Grammatiken, reguläre Ausdrücke und Turing-Maschinen mit einer komfortablen grafischen Oberfläche realisiert und visualisiert werden können.",
                Publisher   = hanserVerlag,
                Authors     = new List <Author> {
                    rolfSocher
                },
                Categories = new List <Category> {
                    computerCategory,
                    literatureCategory
                },
                Language = german
            };
            var book6 = new Book
            {
                ArticleId = 6,
                InternationalStandardBookNumber = "9783060313150",
                Title       = "English G 21",
                SubTitle    = "",
                Description = "Eine systematische Prüfungsvorbereitung mit drei kürzeren Units, die dem Aufbau von Band 5 folgen",
                Publisher   = cornelsen,
                Authors     = new List <Author> {
                    susanAbbey,
                    roderickCox,
                    laurenceHarger,
                    claireLamsdale,
                    wolfgangBiederstaedt,
                    hellmutSchwarz
                },
                Categories = new List <Category> {
                    schoolCategory
                },
                Language = english
            };
            var book7 = new Book
            {
                ArticleId = 7,
                InternationalStandardBookNumber = "9783125380011",
                Title       = "¡Adelante! Nivel intermedio",
                SubTitle    = "¡Adelante! Schülerbuch 11./12. Schuljahr. Nivel intermedio",
                Description = "Alltagssituationen, über die man gerne spricht - Schulung der Grundfertigkeiten - Förderung des Sprechens - Aufgabenorientiertes Arbeiten - Grammatik, die auf das Wesentliche reduziert ist - Anregungen zum selbstständigen Lernen 8 Unidades, linearer Buchaufbau mit 3 Plateauphasen. Die inhaltliche Konzeption des Nivel elemental wird fortgeführt: Am Ende jeder Unidad steht ebenfalls die Tarea final. Die Schülerinnen und Schüler lernen interessante Schauplätze in Spanien und Lateinamerika kennen. Intensive Abiturvorbereitung im Teil Preparación para los exámenes: ein Angebot verschiedener…mehr",
                Publisher   = ernstKlett,
                Authors     = new List <Author> {
                    antonioBarquero,
                    julianaBizama,
                    jaimeCorpas,
                    pedroCrovetto,
                    evaDiaz,
                    claireMarieJeske,
                    aliciaJimenez,
                    javierNavarro,
                    rosamnaPardellas
                },
                Categories = new List <Category> {
                    schoolCategory
                },
                Language = spain
            };

            var books = new [] {
                book1,
                book2,
                book3,
                book4,
                book5,
                book6,
                book7,
            };

            articleRepo.AddArticles(books);
        }
Ejemplo n.º 50
0
 public ArticleController(IArticleRepository articleRepository,
                                     ITranslationRepository translationRepository)
 {
     this.articleRepository = articleRepository;
     this.translationRepository = translationRepository;
 }
Ejemplo n.º 51
0
 public ArticleManagementAppService(IArticleRepository repository,
                                    IArticleCommonAppService articleCommonAppService)
 {
     _repository = repository;
     _articleCommonAppService = articleCommonAppService;
 }
Ejemplo n.º 52
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="articleRepository"></param>
 public CreateArticleCommandHandler(IArticleRepository articleRepository)
 {
     _articleRepository = articleRepository;
 }
Ejemplo n.º 53
0
 public ArticleController(IArticleRepository articleRepository, INewsDtoBuilder newsDtoBuilder)
 {
     _articleRepository = articleRepository;
     _newsDtoBuilder    = newsDtoBuilder;
 }
Ejemplo n.º 54
0
 public NewsHelper(IArticleRepository repo)
 {
     repository = repo;
 }
Ejemplo n.º 55
0
        public AdminController(IGeneralRepository repo, IArticleRepository repoA)
        {
            repository = repo;

            repositoryA = repoA;
        }
Ejemplo n.º 56
0
 public Handler(IArticleRepository repository)
 {
     this.repository = repository;
 }
Ejemplo n.º 57
0
 public ArticleHandler(IArticleRepository repository)
 {
     _repository = repository;
 }
Ejemplo n.º 58
0
 public ArticlesController(IArticleRepository articleRepository)
 {
     this.articleRepository = articleRepository;
 }
Ejemplo n.º 59
0
 public ArticleTask(IArticleRepository articleRepository, IWebSrcUtil webSrcUtil, IXpathUtil xpathUtil)
 {
     _articleRepository = articleRepository;
     _webSrcUtil = webSrcUtil;
     _xpathUtil = xpathUtil;
 }
Ejemplo n.º 60
0
 public ArticleService(IArticleRepository articleRepository, IMapper mapper)
 {
     _articleRepository = articleRepository;
     _mapper            = mapper;
 }