private void Run() { var autofacSetup = new AutofacSetup(); var container = autofacSetup.Run(); var autoMapperSetup = new AutoMapperSetup(); autoMapperSetup.Run(); HostFactory.Run(configurator => SetupService(configurator, container)); }