private void AddBindings()
        {
            //Creates a mock object of the Product Repository to test until we get the database set up
            //Mock<IProductsRepository> mock = new Mock<IProductsRepository>();
            //mock.Setup(m => m.Products).Returns(new List<Product>
            //{
            //    new Product {Name = "Football", Price = 25},
            //    new Product {Name = "Surfboard", Price = 179},
            //    new Product {Name = "Running shoes", Price = 95}
            //});

            //This binds and returns the mocked object whenever a request for an implementation of the IProductRepository is made.
            //kernel.Bind<IProductsRepository>().ToConstant(mock.Object);

            //This binds the IProductRepository to the EFProductRepository
            kernel.Bind<IProductsRepository>().To<EFProductRepository>();

            //Pulls "write as file" value from app settings. If null, sets to false.
            EmailSettings emailSettings = new EmailSettings
            {
                WriteAsFile = bool.Parse(ConfigurationManager.AppSettings["Email.WriteAsFile"] ?? "false")
            };

            //Binds the interface with the class and passes in settings from above.
            kernel.Bind<IOrderProcessor>().To<EmailOrderProcessor>()
                .WithConstructorArgument("settings", emailSettings);

            kernel.Bind<IAuthProvider>().To<FormsAuthProvider>();
        }
 //Constructor
 public EmailOrderProcessor(EmailSettings settings)
 {
     emailSettings = settings;
 }