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

namespace CareFusion.Lib.StorageSystem.EventArguments
{
    /// <summary>
    /// The PackDispensed event arguments.
    /// </summary>
    public class PackDispensedEventArgs : EventArgs
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="PackDispensedEventArgs"/> class.
        /// </summary>
        /// <param name="articles">The list of articles with the packs that were dispensed.</param>
        /// <param name="orderNumber">The order number.</param>
        public PackDispensedEventArgs(IArticle[] articles, string orderNumber)
        {
            Articles = articles;
            OrderNUmber = orderNumber;
        }

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

        /// <summary>
        /// Gets the order number.
        /// </summary>
        public string OrderNUmber { get; }
    }
}
