Exemplo n.º 1
0
        public static DataSourceExtractionHistory Create(DateTimeOffset lastArticlePublicationDate, int nbExtractedArticles)
        {
            var result = new DataSourceExtractionHistory {
                Id = Guid.NewGuid().ToString(), LastArticlePublicationDate = lastArticlePublicationDate, NbExtractedArticle = nbExtractedArticles
            };

            return(result);
        }
Exemplo n.º 2
0
 public void AddHistory(DateTimeOffset lastArticlePublicationDate, int nbExtractedArticles)
 {
     ExtractionHistories.Add(DataSourceExtractionHistory.Create(lastArticlePublicationDate, nbExtractedArticles));
 }