public FlashcardController(
     IFlashcardRepository flashcardRepository,
     IMapper mapper
     )
 {
     _flashcardRepository = flashcardRepository;
     _mapper = mapper;
 }
Exemplo n.º 2
0
 public FlashcardsController(IFlashcardRepository flashcardRepository, ICourseRepository courseRepository,
                             IMapper mapper, ILogger <FlashcardsController> logger, IUserRepository userRepository)
 {
     _flashcardsRepository = flashcardRepository ?? throw new ArgumentNullException(nameof(flashcardRepository));
     _courseRepository     = courseRepository ?? throw new ArgumentNullException(nameof(courseRepository));
     _userRepository       = userRepository ?? throw new ArgumentNullException(nameof(userRepository));
     _mapper = mapper ?? throw new ArgumentNullException(nameof(mapper));
     _logger = logger ?? throw new ArgumentNullException(nameof(logger));
 }
Exemplo n.º 3
0
 public FlashcardController(ILogger <HomeController> logger,
                            UserManager <ApplicationUser> userManager,
                            IFlashcardFolderRepository folderRepository,
                            IFlashcardRepository flashcardRepository)
 {
     _logger              = logger;
     _userManager         = userManager;
     _folderRepository    = folderRepository;
     _flashcardRepository = flashcardRepository;
 }
 public FlashcardsBusiness(IFlashcardRepository flashcardRepository)
 {
     _flashcardRepository = flashcardRepository;
 }
Exemplo n.º 5
0
 public DeckController(ILogger<DeckController> logger, IVocabulary vocabulary, IFlashcardRepository flashcardRepository)
 {
     _logger = logger;
     _vocabulary = vocabulary;
     _flashcardRepository = flashcardRepository;
 }
Exemplo n.º 6
0
 public FlashcardService(IFlashcardRepository repository, IMapper mapper)
 {
     _repository = repository;
     _mapper     = mapper;
 }
Exemplo n.º 7
0
 public FlashcardService(IFlashcardRepository flashcardRepository, IUserRepository userrepository, ICategoryRepository categoryRepository)
 {
     _flashcardRepository = flashcardRepository;
     _userRepository      = userrepository;
     _categoryRepository  = categoryRepository;
 }
Exemplo n.º 8
0
 public FlashcardController(ILanguageRepository languageRepository,
                            IFlashcardRepository flashcardRepository)
 {
     this.languageRepository  = languageRepository;
     this.flashcardRepository = flashcardRepository;
 }