static Program() { #region SimpleInjector //_container = new Container(); //_container.RegisterEventBusProducerDependencies(SettingsStub.GetSetting()); //_container.Verify(); #endregion #region Microsoft DependencyInjection _serviceProvider = new ServiceCollection() .RegisterEventBusProducerDependencies(SettingsStub.GetSetting()) .BuildServiceProvider(); #endregion }
static Program() { container = new Container(); container.RegisterTestSomeActionExecutedConsumerDependencies(SettingsStub.GetSetting()); container.Verify(); }
static Program() { container = new Container(); container.RegisterSendMailConsumerDependencies(SettingsStub.GetSetting()); container.Verify(); }