using ShaNetHoliday.Models;
using Microsoft.Practices.Unity;
using Prism.Modularity;

namespace ShaNetHoliday.Countries.Modularity
{
    /// <summary>
    /// Module Prism pour <see cref="Qatar"/>.
    /// </summary>
    public partial class QatarModule : IModule
    {
        /// <summary>
        /// <see cref="IUnityContainer"/>.
        /// </summary>
        [Dependency]
        public IUnityContainer Container { get; set; }
        /// <summary>
        /// Initialise le module.
        /// </summary>
        public void Initialize() 
            => Container.Resolve<IHolidaySystem>().CountriesAvailable.Add( new Qatar() );
    }
}
