public AuthController(IAuthRepository repository, IConfiguration configuration, IBookshelfRepository bookshelfRepository) { _bookshelfRepository = bookshelfRepository; _configuration = configuration; _repository = repository; }
private readonly IBookRepository _bookRepository; // unused - remove public BookshelvesController(IBookshelfRepository bookshelfRepository, IBookRepository bookRepository) { _bookRepository = bookRepository; _bookshelfRepository = bookshelfRepository; }
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; }