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

namespace ShaNetHoliday.Countries.Modularity
{
    /// <summary>
    /// Module Prism pour <see cref="Comoros"/>.
    /// </summary>
    public partial class ComorosModule : 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 Comoros() );
    }
}
