public AlbumUnitOfWork ( BaseContext context, IRepositoryCreator <Profile> profileRepositoryCreator, IRepositoryCreator <Image> imageRepositoryCreator, IRepositoryCreator <HashTag> hashTagRepositoryCreator, IRepositoryCreator <Evaluation> evaluationRepositoryCreator, IRepositoryCreator <Subscription> subscriptionRepositoryCreator, IRepositoryCreator <File> fileRepositoryCreator ) { _context = context ?? throw new ArgumentNullException("Context must be not null!"); _hashTagRepository = hashTagRepositoryCreator.GetRepositoryInstance(context) ?? throw new ArgumentNullException("RepositoryCreator must be not null!"); _profileRepository = profileRepositoryCreator.GetRepositoryInstance(context) ?? throw new ArgumentNullException("RepositoryCreator must be not null!"); _fileRepository = fileRepositoryCreator.GetRepositoryInstance(context) ?? throw new ArgumentNullException("RepositoryCreator must be not null!"); _imageRepository = imageRepositoryCreator.GetRepositoryInstance(context) ?? throw new ArgumentNullException("RepositoryCreator must be not null!"); _subscriptionRepository = subscriptionRepositoryCreator.GetRepositoryInstance(context) ?? throw new ArgumentNullException("RepositoryCreator must be not null!"); _evaluationRepository = evaluationRepositoryCreator.GetRepositoryInstance(context) ?? throw new ArgumentNullException("RepositoryCreator must be not null!"); }
protected BaseUnitOfWork( IContextCreator contextCreator, IRepositoryCreator repositoryCreator) { _contextCreator = contextCreator; _repositoryCreator = repositoryCreator; }
public StandardController(IRepositoryCreator repo) : base(repo) { }
public CreatorController(IRepositoryCreator <TEntity> repository, IDtoTranformer <TEntity, TDto> dtoTransformer) : base(repository, dtoTransformer) { }
public TeacherController(IRepositoryCreator repo) : base(repo) { }
public CrmManager(ILogger logger, string account, string login, string pass) : this(account, login, pass) { this.RepositoryCreator = new LoggedRepositoryCreator(Provider, logger); }
public CrmManager(string account, string login, string pass) { new InitMappings(); Provider = new CrmProvider(account: account, login: login, pass: pass); this.RepositoryCreator = new BasicRepositoryCreator(Provider); }
public DomainController(IRepositoryCreator repoCreator) { this.repoCreator = repoCreator; this.DomainRepository = repoCreator.GetRepository <T>(); }
public CourseController(IRepositoryCreator repo) : base(repo) { }
public StudentController(IRepositoryCreator repo) : base(repo) { }