﻿namespace NinjectIoCContainer
{
    using System.Reflection;
    using Contracts;
    using Ninject;

    public class Startup
    {
        public static void Main(string[] args)
        {
            var kernel = new StandardKernel();
            // Loads NinjectModules (code configurations)
            kernel.Load(Assembly.GetExecutingAssembly()); 
            // Easier: this.Bind<ICourseData>().To<CourseData>();

            var data = kernel.Get<ICourseData>();

            var courses = new Courses(data);
            courses.PrintAll();
        }
    }
}
