public HubEnvironment(IHubContext <MainHub> hubContext, IValidationRuleFactory validationRuleFactory) { IRepositoryFactory repositoryFactory = new RepositoryFactory(new DBContext()); IActivityFactory activityFactory = new ActivityFactory(repositoryFactory, validationRuleFactory); this.useCaseFactory = new UseCaseFactory(activityFactory); this.hubContext = hubContext; }
public HubEnvironment(ApplicationDbContext context) { IValidationRuleFactory validationRuleFactory = new ValidationRuleFactory(); IRepositoryFactory repositoryFactory = new RepositoryFactory(context); IActivitiesFactory activitiesFactory = new ActivitiesFactory(repositoryFactory, validationRuleFactory); UseCaseFactory = new UseCaseFactory(activitiesFactory); }
public HubController(IHubContext <CurHub> hubContext, IValidationRuleFactory validationRuleFactory) { IUnitOfWorkFactory unitOfWorkFactory = new UnitOfWorkFactory(); IUnitOfWork unitOfWork = unitOfWorkFactory.CreateUnitOfWork(); IActivityFactory activityFactory = new ActivityFactory(unitOfWork, validationRuleFactory); this.useCaseFactory = new UseCaseFactory(activityFactory); this.hubContext = hubContext; }
public ItemCategoriesController(IUseCaseFactory usecaseFactory) { this.usecaseFactory = usecaseFactory; }
public ContactController(IUseCaseFactory useCaseFactory, IHub <ContactHub> hub) { _useCaseFactory = useCaseFactory; _hub = hub; }
public ForecastService(IUseCaseFactory useCaseFactory) { _useCaseFactory = useCaseFactory; }
public StylesController(IUseCaseFactory usecaseFactory) { this.usecaseFactory = usecaseFactory; }
public ServerHub() { logger = DependencyConfiguration.Container.Resolve <LoggingService>(); useCaseFactory = DependencyConfiguration.Container.Resolve <IUseCaseFactory>(); }
public SuppliersController(IUseCaseFactory usecaseFactory) { this.usecaseFactory = usecaseFactory; }
public ProductController(IUseCaseFactory useCaseFactory, IAddProductPresenter addProductPresenter, IMapper mapper) { _useCaseFactory = useCaseFactory ?? throw new ArgumentNullException(nameof(useCaseFactory)); _addProductPresenter = addProductPresenter ?? throw new ArgumentNullException(nameof(addProductPresenter)); _mapper = mapper ?? throw new ArgumentNullException(nameof(mapper)); }