public BooksController( IBooksService booksService, IAuthorsService authorsService) { _booksService = booksService; _authorsService = authorsService; }
public HomeController(IQuotesService quotesService, IAuthorsService authorsService, IModesService modesService) { this.quotesService = quotesService; this.authorsService = authorsService; this.modesService = modesService; }
public AuthorsController( IAuthorsService authorsService, IBooksService booksService) { this.authorsService = authorsService; this.booksService = booksService; }
public AuthorBooksViewComponent( IBooksService booksService, IAuthorsService authorsService) { this.booksService = booksService; this.authorsService = authorsService; }
public AuthorsController(IAuthorsService authorsService, IMapper mapper) { Guard.WhenArgument(authorsService, nameof(authorsService)).IsNull().Throw(); Guard.WhenArgument(mapper, nameof(mapper)).IsNull().Throw(); this.authorsService = authorsService; this.mapper = mapper; }
public BooksController(IBooksService booksService, ICategoriesService categoriesService, IAuthorsService authorsService, ICloudinaryService cloudinary) { this.booksService = booksService; this.categoriesService = categoriesService; this.authorsService = authorsService; this.cloudinary = cloudinary; }
public DatabaseSeedingController(IAuthorsService authorsService, IPublisherService publisherService, IBooksService booksService, IHostingEnvironment environment) { this.authorsService = authorsService; this.publisherService = publisherService; this.booksService = booksService; this.environment = environment; }
public DefaultBlogApiOperations(IBlogPostsService blogPosts, IBlogPostService blogPost, IAuthorsService authors, IAuthorService author) { BlogPost = blogPost; BlogPosts = blogPosts; Author = author; Authors = authors; }
public BooksController( IBooksService booksService, IAuthorsService authorsService, IMapper mapper) { this.booksService = booksService; this.authorsService = authorsService; this.mapper = mapper; }
public BooksController( IBooksService booksService, IPublishingsService publishingsService, IAuthorsService authorsService, ITechnologiesService technologiesService) { _booksService = booksService; _publishingsService = publishingsService; _authorsService = authorsService; _technologiesService = technologiesService; }
public BooksController(IBooksService booksService, IAuthorsService authorsService, ICacheService cacheService, IMapper mapper) { Guard.WhenArgument(booksService, nameof(booksService)).IsNull().Throw(); Guard.WhenArgument(authorsService, nameof(authorsService)).IsNull().Throw(); Guard.WhenArgument(cacheService, nameof(cacheService)).IsNull().Throw(); Guard.WhenArgument(mapper, nameof(mapper)).IsNull().Throw(); this.booksService = booksService; this.authorsService = authorsService; this.cacheService = cacheService; this.mapper = mapper; }
public SearchController( ISearchService searchService, ITechnologiesService technologiesService, IBooksService booksService, IAuthorsService authorsService, IGlobalSearchService globalSearchService) { _searchService = searchService; _technologiesService = technologiesService; _booksService = booksService; _authorsService = authorsService; _globalSearchService = globalSearchService; }
/// <inheritdoc /> public BooksService( DatabaseContext context, IMapper mapper, IAuthorsService authorsService, IPublishingsService publishingsService, ITechnologiesService technologiesService) { _context = context; _mapper = mapper; _authorsService = authorsService; _publishingsService = publishingsService; _technologiesService = technologiesService; }
/// <inheritdoc /> public ParserService( IPiterParser piterParser, IAuthorsService authorsService, IPublishingsService publishingsService, ITechnologiesService technologiesService, IBooksService booksService, IEksmoParser eksmoParser) { _piterParser = piterParser; _authorsService = authorsService; _publishingsService = publishingsService; _technologiesService = technologiesService; _booksService = booksService; _eksmoParser = eksmoParser; }
public HomeController(IUsersService usersService, IDiscussionsService discussionsService, IBooksService booksService, ICommentsService commentsService, IAuthorsService authorService, ApplicationUserManager userManager) { Guard.WhenArgument(usersService, nameof(usersService)).IsNull().Throw(); Guard.WhenArgument(discussionsService, nameof(discussionsService)).IsNull().Throw(); Guard.WhenArgument(booksService, nameof(booksService)).IsNull().Throw(); Guard.WhenArgument(commentsService, nameof(commentsService)).IsNull().Throw(); Guard.WhenArgument(authorService, nameof(authorService)).IsNull().Throw(); Guard.WhenArgument(userManager, nameof(userManager)).IsNull().Throw(); this.usersService = usersService; this.discussionsService = discussionsService; this.booksService = booksService; this.commentsService = commentsService; this.authorService = authorService; this.userManager = userManager; }
public BooksController( IBooksService booksService, IGenresService genresService, ITagsService tagsService, IAwardsService awardsService, IAuthorsService authorsService, IEditionLanguagesService languagesService, IBookTagsService bookTagsService, ICloudinaryService cloudinaryService) { this.booksService = booksService; this.genresService = genresService; this.tagsService = tagsService; this.awardsService = awardsService; this.authorsService = authorsService; this.languagesService = languagesService; this.bookTagsService = bookTagsService; this.cloudinaryService = cloudinaryService; }
public Program( ILogger logger, IMenu menu, IIoHelper ioHelper, IBooksService booksService, IAuthorsService authorsService, IUsersService usersService, INotificationsService notificationService, IDatabaseManagementService databaseManagementService, IBookStoreService bookStoreService) { _logger = logger; _menu = menu; _ioHelper = ioHelper; _booksService = booksService; _authorsService = authorsService; _usersService = usersService; _notificationService = notificationService; _databaseManagementService = databaseManagementService; _bookStoreService = bookStoreService; }
public AuthorsController(IAuthorsService authorsService) { this.authorsService = authorsService; }
public AuthorsController(IAuthorsService authorsService, IMapper mapper) { this.authorsService = authorsService; this.mapper = mapper; }
public UpdateAuthorHandler(IAuthorsService authorsService) => _authorsService = authorsService;
public BooksController(IBooksService booksService, IAuthorsService authorsService, IMapper mapper) { _booksService = booksService; _authorsService = authorsService; _mapper = mapper; }
public AuthorsController(IAuthorsService Authorservice) { this.service = Authorservice; }
public AuthorsController(IAuthorsService authorsService, IMapper mapper) { _authorsService = authorsService; _mapper = mapper; }
public BooksController(IBooksService books, IAuthorsService authors) { this.authors = authors; this.books = books; }
public void SetUp() { Books = new Collection <Book> { DefaultData.Books.JsPocketGuide, DefaultData.Books.JsForProfessionals, DefaultData.Books.JsOptimizingPerfomance, DefaultData.Books.Es6AndNotOnly, DefaultData.Books.ClrVia, DefaultData.Books.MyEvernoteNotes, DefaultData.Books.WithoutAuthorsBook, DefaultData.Books.CSharpCompleteGuide, DefaultData.Books.CSharp6AndNetPlatform, DefaultData.Books.AsyncProgrammingCSharp5 }; Authors = new Collection <Author>() { DefaultData.Authors.Devis, DefaultData.Authors.Ferguson, DefaultData.Authors.Flenagan, DefaultData.Authors.Jepkins, DefaultData.Authors.Rezig, DefaultData.Authors.Rihter, DefaultData.Authors.Shildt, DefaultData.Authors.Simpson, DefaultData.Authors.Troelsen, DefaultData.Authors.Yazynin, DefaultData.Authors.Zakas }; Genres = new Collection <Genre>() { DefaultData.Genres.CSharp, DefaultData.Genres.ComputersAndTecnology, DefaultData.Genres.DotNet, DefaultData.Genres.JavaScript, DefaultData.Genres.LanguageAndTools, DefaultData.Genres.MicrosoftProgramming, DefaultData.Genres.Programming, DefaultData.Genres.WebProgramming }; #region Publishers DefaultData.Publishers.Viliams.Books = new List <Book>() { DefaultData.Books.JsPocketGuide, DefaultData.Books.JsForProfessionals, DefaultData.Books.CSharpCompleteGuide, DefaultData.Books.CSharp6AndNetPlatform }; DefaultData.Publishers.Self.Books = new List <Book>() { DefaultData.Books.WithoutAuthorsBook, DefaultData.Books.MyEvernoteNotes }; DefaultData.Publishers.Piter.Books = new List <Book>() { DefaultData.Books.Es6AndNotOnly, DefaultData.Books.ClrVia }; DefaultData.Publishers.DmkPress.Books = new List <Book>() { DefaultData.Books.AsyncProgrammingCSharp5 }; DefaultData.Publishers.SymbolPlus.Books = new List <Book>() { DefaultData.Books.JsOptimizingPerfomance }; Publishers = new Collection <Publisher>() { DefaultData.Publishers.Self, DefaultData.Publishers.DmkPress, DefaultData.Publishers.Piter, DefaultData.Publishers.SymbolPlus, DefaultData.Publishers.Viliams, }; #endregion Invoices = new Collection <Invoice>() { DefaultData.Invoices.First, DefaultData.Invoices.Second, DefaultData.Invoices.Third }; Subscribers = new Collection <Subscriber>() { DefaultData.Subscribers.Petrov, DefaultData.Subscribers.Ivanov, DefaultData.Subscribers.Maslov, DefaultData.Subscribers.Sidorov }; Rents = new Collection <Rent>() { DefaultData.Rents.RentIvanov1, DefaultData.Rents.RentIvanov2, DefaultData.Rents.RentIvanov3, DefaultData.Rents.RentMaslov, DefaultData.Rents.RentMaslov2, DefaultData.Rents.RentMaslov3, DefaultData.Rents.RentMaslov4, DefaultData.Rents.RentMaslov5, DefaultData.Rents.RentPetrov, DefaultData.Rents.RentSidorov, DefaultData.Rents.RentSidorov2, DefaultData.Rents.RentSidorov3, DefaultData.Rents.RentSidorov4, DefaultData.Rents.RentSidorov5, }; var stubBookRepository = new BookRepositoryStub(Books).Get(); var stubAuthorRepository = new AuthorRepositoryStub(Authors).Get(); var stubGenresRepository = GetGenresRepositoryStub(); var stubPublishersRepository = new PublishersRepositoryStub(Publishers).Get(); var stubInvoicesRepository = new InvoicesRepositoryStub(Invoices).Get(); var stubSubscribersRepository = new SubscribersRepositoryStub(Subscribers).Get(); var stubRentsRepository = new RentsRepositoryStub(Rents).Get(); var unitOfWork = Mock.Of <IUnitOfWork>(x => x.BookRepository == stubBookRepository.Object && x.AuthorRepository == stubAuthorRepository.Object && x.GenreRepository == stubGenresRepository.Object && x.PublisherRepository == stubPublishersRepository.Object && x.InvoiceRepository == stubInvoicesRepository.Object && x.SubscriberRepository == stubSubscribersRepository.Object && x.RentRepository == stubRentsRepository.Object); BooksService = new BooksService(unitOfWork); AuthorsService = new AuthorsService(unitOfWork); GenresService = new GenresService(unitOfWork); PublishersService = new PublishersService(unitOfWork); InvoicesService = new InvoicesService(unitOfWork); SubscribersService = new SubscribersService(unitOfWork); RentsService = new RentsService(unitOfWork); ReportsService = new ReportsService(unitOfWork); }
public AuthorsController(IAuthorsService authorsService, IBooksService booksService) { _authorsService = authorsService; _booksService = booksService; }
public GetAuthorHandler(IAuthorsService authorsService) => _authorsService = authorsService;
/// <summary> /// Author controller /// </summary> /// <param name="service">Service for operations</param> public AuthorsController(IAuthorsService service) { this._authorsService = service; }
public DeleteAuthorHandler(IAuthorsService authorsService) => _authorsService = authorsService;
public AuthorsController(IAuthorsService authorService, ILogger <AuthorsController> logger) { this._authorService = authorService; _logger = logger; }