public PublisherAdminController(IProductServices product, IPublisherServices publisher, IProductImageServices productImage, IReviewServices review, IOrderDetailServices orderDetail) { _product = product; _publisher = publisher; _productImage = productImage; _review = review; _orderDetail = orderDetail; }
public BookCreatorPresenter( IBookCreatorView view, IAuthorServices authorService, IBookServices bookService, IGenreServices genreService, IPublisherServices publisherService) : base(view) { Guard.WhenArgument(view, "View is null.").IsNull().Throw(); Guard.WhenArgument(authorService, "Author service is null.").IsNull().Throw(); Guard.WhenArgument(bookService, "Book service is null.").IsNull().Throw(); Guard.WhenArgument(genreService, "Genre service is null.").IsNull().Throw(); Guard.WhenArgument(publisherService, "Publisher service is null.").IsNull().Throw(); this.authorService = authorService; this.bookService = bookService; this.genreService = genreService; this.publisherService = publisherService; }
public BookSearcherPresenter( IBookSearcherView view, IAuthorServices authorService, IBookServices bookService, IGenreServices genreService, IPublisherServices publisherService) : base(view) { Guard.WhenArgument(authorService, "Author service is null.").IsNull().Throw(); Guard.WhenArgument(bookService, "Book service is null.").IsNull().Throw(); Guard.WhenArgument(genreService, "Genre service is null.").IsNull().Throw(); Guard.WhenArgument(publisherService, "Publisher service is null.").IsNull().Throw(); this.authorService = authorService; this.bookService = bookService; this.genreService = genreService; this.publisherService = publisherService; this.View.OnAuthorsGetData += View_OnAuthorsGetData; this.View.OnGenresGetData += View_OnGenresGetData; this.View.OnPublishersGetData += View_OnPublishersGetData; }
public PublishersController(IPublisherServices publisherServices) { PublisherServices = publisherServices; }