private void ConfigureNotificationAdapter()
 {
     if (_settings.NotificationAdapter == "Test")
     {
         var notificationAdapter = new NotificationAdapter();
         notificationAdapter.Initialize();
         notificationAdapter.Register(Container);
         _notificationAdapterShutdown = () => { };
     }
     else if (_settings.NotificationAdapter == "RabbitMq")
     {
         var notificationAdapter = new Adapter.Notification.RabbitMq.NotificationAdapter();
         notificationAdapter.Initialize();
         notificationAdapter.Register(Container);
         _notificationAdapterShutdown = () => notificationAdapter.Shutdown();
     }
     else if (_settings.NotificationAdapter == "Email")
     {
         Adapter.Notification.Email.NotificationAdapterSettings settings =
             new Adapter.Notification.Email.NotificationAdapterSettings(
                 "localhost", 1025, bookSupplierEmail: "*****@*****.**");
         var notificationAdapter = new Adapter.Notification.Email.NotificationAdapter(settings);
         notificationAdapter.Initialize();
         notificationAdapter.Register(Container);
         _notificationAdapterShutdown = () => notificationAdapter.Shutdown();
     }
 }
        protected virtual void RegisterNotificationAdapter()
        {
            var notificationAdapter = new Adapter.Notification.RabbitMq.NotificationAdapter();

            notificationAdapter.Initialize();
            notificationAdapter.Register(Container);
            _notificationAdapterShutdown = () => { notificationAdapter.Shutdown(); };
        }