public HomeController(IBooksRepository booksRepository, IWebHostEnvironment environment, IAuthorsRepository authorsRepository, IBooksAuthorsRepository booksAuthorsRepository)
 {
     _booksRepository        = booksRepository;
     _authorsRepository      = authorsRepository;
     _booksAuthorsRepository = booksAuthorsRepository;
     _environment            = environment;
 }
Пример #2
0
 public AuthorsModel()
 {
     idbfactory  = new DbFactory();
     unitOfWork  = new UnitOfWork(idbfactory);
     repoAuthors = new AuthorsRepository(idbfactory);
     repoUsers   = new UsersRepository(idbfactory);
 }
 public PublicationsController(IPublicationRepository publicationRepository, IAuthorsRepository authorRepository, SessionHelper helper, IDataContext dataContext)
     : base(dataContext)
 {
     _publicationRepository = publicationRepository;
     _authorsRepository = authorRepository;
     _sessionHelper = helper;
 }
Пример #4
0
 public BooksRepository(DBLibraryContext ctx, IGenresRepository genRepo, IAuthorsRepository authorsRepository, IBorrowRepository borrowR)
 {
     this.context           = ctx;
     this.Books             = ctx.Books;
     this.GenresRepository  = genRepo;
     this.AuthorsRepository = authorsRepository;
     this.BorrowRepository  = borrowR;
 }
Пример #5
0
 public BooksService(
     IBooksRepository booksRepository,
     IAuthorsRepository authorsRepository,
     IFilesRepository filesRepository)
 {
     _booksRepository   = booksRepository;
     _authorsRepository = authorsRepository;
     _filesRepository   = filesRepository;
 }
Пример #6
0
 public QuotesController(ILogger <QuotesController> logger, IQuotesRepository quotesRepo, IAuthorsRepository authorsRepo, IConfiguration config)
 {
     _logger      = logger;
     _quotesRepo  = quotesRepo;
     _authorsRepo = authorsRepo;
     if (long.TryParse(config["maxedAllowedIntervalForQuote"], out var val))
     {
         _maxedAllowedIntervalForQuote = val;
     }
 }
Пример #7
0
 public ComicsRepository(ApplicationContext context,
                         IPublishersRepository publishersRepository,
                         ICategoriesRepository categoriesRepository,
                         IAuthorsRepository authorsRepository,
                         IDesignersRepository designersRepository) : base(context)
 {
     _publishersRepository = publishersRepository;
     _categoriesRepository = categoriesRepository;
     _authorsRepository    = authorsRepository;
     _designersRepository  = designersRepository;
 }
Пример #8
0
 public UnitOfWork(BookStoreContext context,
                   IAuthorsRepository authorsRepository,
                   IBooksRepository booksRepository,
                   IOrdersRepository ordersRepository,
                   IOrderItemsRepository orderItemsRepository)
 {
     this._context   = context;
     this.Authors    = authorsRepository;
     this.Books      = booksRepository;
     this.Orders     = ordersRepository;
     this.OrderItems = orderItemsRepository;
 }
Пример #9
0
        public DefaultKartotekaService(IAuthorsRepository authorsRep, IBooksRepository booksRep)
        {
            if (authorsRep == null)
            {
                throw new ArgumentNullException("authorsRep", "authorsRep is null");
            }
            if (booksRep == null)
            {
                throw new ArgumentNullException("booksRep", "booksRep is null");
            }

            _authorsRep = authorsRep;
            _booksRep   = booksRep;
        }
Пример #10
0
 public HomeController(
     IWebHostEnvironment hostEnvironment,
     IArticleRepository articleRepository,
     IElectionsRepository electionsRepository,
     IAuthorsRepository authorsRepository,
     IPicturesRepository picturesRepository,
     IOptions <AWSS3Settings> aws3Settings)
 {
     webHostEnvironment   = hostEnvironment;
     _articleRepository   = articleRepository;
     _electionsRepository = electionsRepository;
     _authorsRepository   = authorsRepository;
     _picturesRepository  = picturesRepository;
     _awsS3Settings       = aws3Settings;
 }
Пример #11
0
 public DataManager(ILoginsRepository logins, IAuthorsRepository authors,
                     IGenresRepository genres, IDateRepository dates,
                     IPlaysRepository plays,IOrdersRepository orders, 
                     IRepertoireRepository repertories, ICategoryRepository categories,
                     ICategoriesInfoRepository categoriesInfo, ICourierInfoRepository courierInfo,
                     PrimaryMembershipProvider provider, CustomRoleProvider roleProvider)
 {
     this.logins = logins;
     this.genres = genres;
     this.authors = authors;
     this.dates = dates;
     this.plays = plays;
     this.orders = orders;
     this.provider = provider;
     this.repertories = repertories;
     this.categories = categories;
     this.categoriesInfo = categoriesInfo;
     this.courierInfo = courierInfo;
     this.roleProvider = roleProvider;
 }
Пример #12
0
 public AuthorsController(IAuthorsRepository authorsRepostory, IDataContext dataContext)
     : base(dataContext)
 {
     _authorsRepository = authorsRepostory;
 }
Пример #13
0
 public AuthorsController(IAuthorsRepository authorRepository)
 {
     this.repository = authorRepository;
 }
 public GetAuthorsHandler(IAuthorsRepository authorsRepository, IMapper mapper)
 {
     _authorsRepository = authorsRepository;
     _mapper            = mapper;
 }
Пример #15
0
 public AuthorsController(ILogger <AuthorsController> logger, IAuthorsRepository authorsRepo)
 {
     _logger      = logger;
     _authorsRepo = authorsRepo;
 }
Пример #16
0
 public AuthorsController(IAuthorsRepository repository)
 {
     authorsRepository = repository;
 }
Пример #17
0
 public AuthorsService(IAuthorsRepository authorRepository, IMapper mapper, ILogger <AuthorsService> logger)
 {
     this._authorRepository = authorRepository;
     _mapper = mapper;
     _logger = logger;
 }
Пример #18
0
 public CreateAuthorHandler(IAuthorsRepository authorsRepository)
 => _authorsRepository = authorsRepository;
Пример #19
0
 public AuthorsController(IAuthorsRepository repository, IMapper mapper)
 {
     _repository = repository;
     _mapper     = mapper;
 }
Пример #20
0
 public AuthorViewer()
 {
     InitializeComponent();
     _Repository          = new AuthorsRepository();
     gvAuthors.DataSource = _Repository.GetAuthors();
 }
 public AuthorsControllerTests()
 {
     authorsRepository = LibraryContextMocker.GetInMemoryAuthorRepository(nameof(AuthorsControllerTests));
 }
Пример #22
0
 public GetAllAuthorsFromInMemoryQueryHandler(IAuthorsRepository authorsRepository)
 {
     _authorsRepository = authorsRepository;
 }
Пример #23
0
 public AuthorsManager(IAuthorsRepository authorsRepository)
 {
     this.authorsRepository = authorsRepository;
 }
Пример #24
0
 public AuthorController(ILogger <AuthorController> logger, IAuthorsRepository authorsRepository)
 {
     _authorsRepository = authorsRepository;
 }
Пример #25
0
 ///Constructor con los servicios inyectados
 ///mapper = mapeo de objetos automatico, repositorio = desacoplamiento de ORM,
 ///unitOfWork division de instancias para almacenado en BD
 public AuthorController(IMapper mapper, IAuthorsRepository authorsRepository, IUnitOfWork unitOfWork)
 {
     this.unitOfWork        = unitOfWork;
     this.authorsRepository = authorsRepository;
     this.mapper            = mapper;
 }
Пример #26
0
 public BooksService(IAuthorsRepository authorsRepository)
 {
     this.authorsRepository = authorsRepository;
 }
Пример #27
0
 public AuthorsController(IAuthorsRepository authorsRepository, ILogger logger)
 {
     this.authorsRepository = authorsRepository;
     this.logger            = logger;
 }
Пример #28
0
 public AuthorController(IAuthorsRepository rep)
 {
     _rep = rep;
 }
Пример #29
0
 public AuthorsService(IAuthorsRepository authorRepo)
 {
     _authorRepo = authorRepo;
 }
Пример #30
0
 public SessionHelper(IAuthorsRepository authors, IPublicationRepository publications)
 {
     _authors = authors;
     _publications = publications;
 }
Пример #31
0
 public BooksHaveAuthorsService(IBooksHaveAuthorsRepository bookAuRepo, IBooksRepository bookRepo, IAuthorsRepository auRepo)
 {
     _bookAuRepo = bookAuRepo;
     _bookRepo   = bookRepo;
     _auRepo     = auRepo;
 }
 public GetAuthorByIdFromInMemoryQueryHandlery(IAuthorsRepository authorsRepository)
 {
     _authorsRepository = authorsRepository;
 }
Пример #33
0
 public AuthorsService(IAuthorsRepository authorsRepository)
 {
     _authorsRepository = authorsRepository;
 }
Пример #34
0
 private void Form1_Load(object sender, EventArgs e)
 {
     authorsRepository = new AuthorsRepository();
     dgData.DataSource = authorsRepository.GetAuthorsAll();
 }