private void AddingBindings()
        {
            _kernel.Bind<IProductRepository>().To<EFProductRepository>();

            EmailsSettings emailSettings = new EmailsSettings
                                               {
                                                   WriteAsFile =
                                                       bool.Parse(
                                                           ConfigurationManager.AppSettings["Email.WriteAsFile"] ??
                                                           "false")
                                               };
            _kernel.Bind<IOrderProcessor>().To<EmailOrderProcessor>().WithConstructorArgument("settings", emailSettings);
        }
 public EmailOrderProcessor(EmailsSettings setting)
 {
     this.emailSettings = setting;
 }