private void AddBindings()
        {
            kernel.Bind<IAuthProvider>().To<FormsAuthProvider>();

            EmailSettings emailSettings = new EmailSettings
            {
                WriteAsFile = bool.Parse(ConfigurationManager.AppSettings["Emai.WriteAsFile"] ?? "false")
            };

            kernel.Bind<IOrderProcessor>().To<EmailOrderProcessor>()
                .WithConstructorArgument("settings", emailSettings);
        }
 public EmailOrderProcessor(EmailSettings settings)
 {
     settings.WriteAsFile = true;  //TO WRITE EMAIL INTO FILE!!
     emailSettings = settings;
 }