using CareFusion.Lib.StorageSystem.Stock;
using System;

namespace CareFusion.Lib.StorageSystem.EventArguments
{
    /// <summary>
    /// The StockUpdated event arguments.
    /// </summary>
    public class StockUpdatedEventArgs : EventArgs
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="StockUpdatedEventArgs"/> class.
        /// </summary>
        /// <param name="articles">The list of articles with the packs that were updated.</param>
        public StockUpdatedEventArgs(IArticle[] articles)
        {
            Articles = articles;
        }

        /// <summary>
        /// Gets the information of the articles and the packs that were updated.
        /// </summary>
        public IArticle[] Articles { get; }
    }
}
