Exemple #1
0
 public AuthController(IAuthRepository repository, IConfiguration configuration, IBookshelfRepository bookshelfRepository)
 {
     _bookshelfRepository = bookshelfRepository;
     _configuration       = configuration;
     _repository          = repository;
 }
Exemple #2
0
 private readonly IBookRepository _bookRepository; // unused - remove
 public BookshelvesController(IBookshelfRepository bookshelfRepository, IBookRepository bookRepository)
 {
     _bookRepository      = bookRepository;
     _bookshelfRepository = bookshelfRepository;
 }
Exemple #3
0
 public void Setup()
 {
     repository = new BookshelfRepository();
     service    = new BookshelfService(repository);
     controller = new BookshelfController(service);
 }
 public BookshelfService(IBookshelfRepository repository)
 {
     _repository = repository;
 }
 public BooksController(IBookshelfRepository repo, IMapper mapper)
 {
     this.mapper = mapper;
     this.repo   = repo;
 }