public void Init() { ComponentRegistration.Reset(); ComponentRegistration.RegisterSingletonComponent <ICollector>(ConfigurationTests.TYPE_COLLECTOR); ComponentRegistration.RegisterComponent <IStack>(ConfigurationTests.TYPE_STACK); ComponentRegistration.RegisterComponent <IConverter>(ConfigurationTests.TYPE_CONVERTER); ComponentRegistration.RegisterComponent <IReader>(ConfigurationTests.TYPE_READER); ComponentRegistration.RegisterComponent <ITransformer>(ConfigurationTests.TYPE_TRANSFORMER); ComponentRegistration.RegisterComponent <IPublisher>(ConfigurationTests.TYPE_PUBLISHER); ComponentRegistration.RegisterComponent <IMapper>(ConfigurationTests.TYPE_MAPPER); ComponentRegistration.RegisterComponent <IEntity>(ConfigurationTests.TYPE_DATA); ComponentRegistration.RegisterTypesFromAssembly(new ThirdPartyAutofacConfiguration() { AssemblyName = ConfigurationTests.COLLECTOR_SDK_ASSEMBLY, Type = "LoggerFacade" }); ComponentRegistration.RegisterModulesFromAssembly(new ThirdPartyAutofacConfiguration() { AssemblyName = ConfigurationTests.NLOG_EXTRAS_ASSEMBLY, RegisterAll = true }); ComponentRegistration.Build(); }