﻿using BBCNews.Web.Server.DomainModels;
using BBCNews.Web.Server.Repositories.Interfaces;
using System.Collections.Generic;

namespace BBCNews.Web.Server.Repositories
{
    public class InMemoryArticleRepository : IArticleRepository
    {
        private static List<Article> _articles;

        static InMemoryArticleRepository()
        {
            _articles = new List<Article>();
        }

        public bool Save(IList<Article> articles)
        {
            _articles.AddRange(articles);
            return true;
        }
    }
}