public IndustryController(IDependencyFactory dependencyFactory) { _industryRepository = dependencyFactory.GetInstance<IChecklistTemplateRepository>(); _industryQuestionRepository = dependencyFactory.GetInstance<IChecklistTemplateQuestionRepository>(); _questionRepository = dependencyFactory.GetInstance<IQuestionRepository>(); _userForAuditingRepository = dependencyFactory.GetInstance<BusinessSafe.Domain.RepositoryContracts.IUserForAuditingRepository>(); }
public QuestionController(IDependencyFactory dependencyFactory) { _questionRepo = dependencyFactory.GetInstance<IQuestionRepository>(); ; _categoryRepo = dependencyFactory.GetInstance<ICategoryRepository>(); _industryRepository = dependencyFactory.GetInstance<IChecklistTemplateRepository>(); _userForAuditingRepository = dependencyFactory.GetInstance<BusinessSafe.Domain.RepositoryContracts.IUserForAuditingRepository>(); _reportLetterStatementCategoryRepo = dependencyFactory.GetInstance<IRepository<ReportLetterStatementCategory, Guid>>(); }
/// <summary> /// /// </summary> /// <param name="dependencyFactory"></param> public ChecklistController(IDependencyFactory dependencyFactory) { _checklistRepository = dependencyFactory.GetInstance<ICheckListRepository>(); _questionRepository = dependencyFactory.GetInstance<IQuestionRepository>(); _questionResponseRepository = dependencyFactory.GetInstance<IQuestionResponseRepository>(); _clientDetailsService = dependencyFactory.GetInstance<IClientDetailsService>(); _getChecklistsQuery = dependencyFactory.GetInstance<IGetChecklistsQuery>(); _checklistQuestionRepository = dependencyFactory.GetInstance<IChecklistQuestionRepository>(); _employeeRespository = dependencyFactory.GetInstance<IEmployeeRepository>(); _impressionRespository = dependencyFactory.GetInstance<IImpressionTypeRepository>(); _categoryRepository = dependencyFactory.GetInstance<ICategoryRepository>(); _timescaleRepository = dependencyFactory.GetInstance<ITimescaleRepository>(); _userForAuditingRepository = dependencyFactory.GetInstance<IUserForAuditingRepository>(); _siteRepository = dependencyFactory.GetInstance<ISiteRepository>(); _checklistPdfCreator = dependencyFactory.GetInstance<IChecklistPdfCreator>(); _clientDocumentationChecklistPdfWriter = dependencyFactory.GetInstance<IClientDocumentationChecklistPdfWriter>(); _log = dependencyFactory.GetInstance<IPeninsulaLog>(); _qaAdvisorRepository = dependencyFactory.GetInstance<IQaAdvisorRepository>(); _industryRepository = dependencyFactory.GetInstance<IChecklistTemplateRepository>(); _qualityControlService = dependencyFactory.GetInstance<IQualityControlService>(); _bus = dependencyFactory.GetInstance<IBus>(); _businessSafeSessionManager = dependencyFactory.GetInstance<IBusinessSafeSessionManager>(); _checklistService = dependencyFactory.GetInstance<IChecklistService>(); _userIdentityFactory = dependencyFactory.GetInstance<IUserIdentityFactory>(); }