public HomeController(IBooksRepository booksRepository, IWebHostEnvironment environment, IAuthorsRepository authorsRepository, IBooksAuthorsRepository booksAuthorsRepository) { _booksRepository = booksRepository; _authorsRepository = authorsRepository; _booksAuthorsRepository = booksAuthorsRepository; _environment = environment; }
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; }
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; }
public BooksService( IBooksRepository booksRepository, IAuthorsRepository authorsRepository, IFilesRepository filesRepository) { _booksRepository = booksRepository; _authorsRepository = authorsRepository; _filesRepository = filesRepository; }
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; } }
public ComicsRepository(ApplicationContext context, IPublishersRepository publishersRepository, ICategoriesRepository categoriesRepository, IAuthorsRepository authorsRepository, IDesignersRepository designersRepository) : base(context) { _publishersRepository = publishersRepository; _categoriesRepository = categoriesRepository; _authorsRepository = authorsRepository; _designersRepository = designersRepository; }
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; }
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; }
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; }
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; }
public AuthorsController(IAuthorsRepository authorsRepostory, IDataContext dataContext) : base(dataContext) { _authorsRepository = authorsRepostory; }
public AuthorsController(IAuthorsRepository authorRepository) { this.repository = authorRepository; }
public GetAuthorsHandler(IAuthorsRepository authorsRepository, IMapper mapper) { _authorsRepository = authorsRepository; _mapper = mapper; }
public AuthorsController(ILogger <AuthorsController> logger, IAuthorsRepository authorsRepo) { _logger = logger; _authorsRepo = authorsRepo; }
public AuthorsController(IAuthorsRepository repository) { authorsRepository = repository; }
public AuthorsService(IAuthorsRepository authorRepository, IMapper mapper, ILogger <AuthorsService> logger) { this._authorRepository = authorRepository; _mapper = mapper; _logger = logger; }
public CreateAuthorHandler(IAuthorsRepository authorsRepository) => _authorsRepository = authorsRepository;
public AuthorsController(IAuthorsRepository repository, IMapper mapper) { _repository = repository; _mapper = mapper; }
public AuthorViewer() { InitializeComponent(); _Repository = new AuthorsRepository(); gvAuthors.DataSource = _Repository.GetAuthors(); }
public AuthorsControllerTests() { authorsRepository = LibraryContextMocker.GetInMemoryAuthorRepository(nameof(AuthorsControllerTests)); }
public GetAllAuthorsFromInMemoryQueryHandler(IAuthorsRepository authorsRepository) { _authorsRepository = authorsRepository; }
public AuthorsManager(IAuthorsRepository authorsRepository) { this.authorsRepository = authorsRepository; }
public AuthorController(ILogger <AuthorController> logger, IAuthorsRepository authorsRepository) { _authorsRepository = authorsRepository; }
///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; }
public BooksService(IAuthorsRepository authorsRepository) { this.authorsRepository = authorsRepository; }
public AuthorsController(IAuthorsRepository authorsRepository, ILogger logger) { this.authorsRepository = authorsRepository; this.logger = logger; }
public AuthorController(IAuthorsRepository rep) { _rep = rep; }
public AuthorsService(IAuthorsRepository authorRepo) { _authorRepo = authorRepo; }
public SessionHelper(IAuthorsRepository authors, IPublicationRepository publications) { _authors = authors; _publications = publications; }
public BooksHaveAuthorsService(IBooksHaveAuthorsRepository bookAuRepo, IBooksRepository bookRepo, IAuthorsRepository auRepo) { _bookAuRepo = bookAuRepo; _bookRepo = bookRepo; _auRepo = auRepo; }
public GetAuthorByIdFromInMemoryQueryHandlery(IAuthorsRepository authorsRepository) { _authorsRepository = authorsRepository; }
public AuthorsService(IAuthorsRepository authorsRepository) { _authorsRepository = authorsRepository; }
private void Form1_Load(object sender, EventArgs e) { authorsRepository = new AuthorsRepository(); dgData.DataSource = authorsRepository.GetAuthorsAll(); }