public ManageCityStateHandler(IConfiguration configuration) { var factory = new ProcessorFactoryResolver <IManageCityStateRepository>(configuration); _manageCityStateRepository = factory.CreateProcessor(); var masterFactory = new ProcessorFactoryResolver <IMasterDataRepository>(configuration); _masterDataRepository = masterFactory.CreateProcessor(); var bulkjobpostfactory = new ProcessorFactoryResolver <IBulkJobPostRepository>(configuration); _bulkjobpostRepository = bulkjobpostfactory.CreateProcessor(); }
public BulkJobPostHandler(IHostingEnvironment env, IConfiguration configuration, IEMailHandler _emailHandler) { environment = env; emailHandler = _emailHandler; var authFactory = new ProcessorFactoryResolver <IAuthRepository>(configuration); authProcessor = authFactory.CreateProcessor(); var bjpFactory = new ProcessorFactoryResolver <IBulkJobPostRepository>(configuration); bjpProcessor = bjpFactory.CreateProcessor(); var jpFactory = new ProcessorFactoryResolver <IJobPostRepository>(configuration); jobPostProcessor = jpFactory.CreateProcessor(); }