public PublishersController( IDeletableEntityRepository <Publisher> dataRepository, IPublishersService publishersService) { this.dataRepository = dataRepository; this.publishersService = publishersService; }
public BooksController(IBooksService booksService, ITagsService tagsService, IUsersService usersService, IPurchasesService purchasesService, IPublishersService publishersService) { this.booksService = booksService; this.tagsService = tagsService; this.usersService = usersService; this.purchasesService = purchasesService; this.publishersService = publishersService; }
public PublishersController( IAwardsService awardsService, IPublishersService publishersService, IEditionsService editionsService, ISeriesService seriesService) { _awardsService = awardsService; _publishersService = publishersService; _editionsService = editionsService; _seriesService = seriesService; }
public ComicsViewModel(IArtistsService artistsService, IBooksService booksService, ICharactersService charactersService, ICodesService codesService, IPublishersService publishersService, ISeriesService seriesService, IStoriesService storiesService, IExportBooksService exportBooksService, IMapper mapper, NavigationService navigationService, IConfiguration configuration) : base(mapper) { _navigationService = navigationService; _configuration = configuration; ArtistView = new ArtistViewModel(artistsService, mapper); BookView = new BookViewModel(booksService, mapper); CharacterView = new CharacterViewModel(charactersService, mapper); CodeView = new CodeViewModel(codesService, mapper); PublisherView = new PublisherViewModel(publishersService, mapper); SeriesView = new SeriesViewModel(seriesService, mapper); StoryView = new StoryViewModel(storiesService, mapper); ReportView = new ReportViewModel(exportBooksService, mapper); Languages = LanguageType.FillLanguages(); Actives = FillEnum <Active>(); FirstPrints = FillEnum <FirstPrint>(); BookTypes = FillEnum <BookType>(); StoryTypes = FillEnum <StoryType>(); ShowArtistFromStoryWindowCommand = new RelayCommand <int?>(new Action <int?>(ShowArtistFromStoryWindow)); ShowBookFromPublisherWindowCommand = new RelayCommand <int?>(new Action <int?>(ShowBookFromPublisherWindow)); ShowBookFromSeriesWindowCommand = new RelayCommand <int?>(new Action <int?>(ShowBookFromSeriesWindow)); ShowBookFromStoryWindowCommand = new RelayCommand <int?>(new Action <int?>(ShowBookFromStoryWindow)); ShowCharacterFromStoryWindowCommand = new RelayCommand <int?>(new Action <int?>(ShowCharacterFromStoryWindow)); ShowCodeFromSeriesWindowCommand = new RelayCommand <int?>(new Action <int?>(ShowCodeFromSeriesWindow)); ShowCodeFromStoryWindowCommand = new RelayCommand <int?>(new Action <int?>(ShowCodeFromStoryWindow)); ShowPublisherFromBookWindowCommand = new RelayCommand <int?>(new Action <int?>(ShowPublisherFromBookWindow)); ShowSeriesFromBookWindowCommand = new RelayCommand <int?>(new Action <int?>(ShowSeriesFromBookWindow)); ShowSeriesFromCodeWindowCommand = new RelayCommand <int?>(new Action <int?>(ShowSeriesFromCodeWindow)); ShowStoryFromArtistWindowCommand = new RelayCommand <int?>(new Action <int?>(ShowStoryFromArtistWindow)); ShowStoryFromBookWindowCommand = new RelayCommand <int?>(new Action <int?>(ShowStoryFromBookWindow)); ShowStoryFromCharacterWindowCommand = new RelayCommand <int?>(new Action <int?>(ShowStoryFromCharacterWindow)); ShowStoryFromCodeWindowCommand = new RelayCommand <int?>(new Action <int?>(ShowStoryFromCodeWindow)); ShowArtistWindowCommand = new RelayCommand(new Action(ShowArtistWindow)); ShowBookWindowCommand = new RelayCommand(new Action(ShowBookWindow)); ShowCharacterWindowCommand = new RelayCommand(new Action(ShowCharacterWindow)); ShowCodeWindowCommand = new RelayCommand(new Action(ShowCodeWindow)); ShowPublisherWindowCommand = new RelayCommand(new Action(ShowPublisherWindow)); ShowSeriesWindowCommand = new RelayCommand(new Action(ShowSeriesWindow)); ShowStoryWindowCommand = new RelayCommand(new Action(ShowStoriesWindow)); ShowReportWindowCommand = new RelayCommand(new Action(ShowReportWindow)); }
public GamesController( IGamesService gamesService, IGenresService genresService, ILanguagesService languagesService, ITagsService tagsService, IPublishersService publishersService, IWebHostEnvironment environment, IWishlistService wishlistService, IOrdersService ordersService, ICartService cartService, IMemoryCache cache) { this.gamesService = gamesService; this.genresService = genresService; this.languagesService = languagesService; this.tagsService = tagsService; this.publishersService = publishersService; this.environment = environment; this.wishlistService = wishlistService; this.ordersService = ordersService; this.cartService = cartService; this.cache = cache; }
public PublishersController(IPublishersService publisherService) { this._publisherService = publisherService; }
// Constructor public PublishersController(IPublishersService publisherService) { // TODO: keep a reference to the service so we can use below _publisherService = publisherService; }
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 PublishersController(IPublishersService service, UserManager <KnigaUser> userManager) { this.publishersService = service; this.userManager = userManager; }
public PublishersController(IPublishersService publishersService) { _publishersService = publishersService; }
public UserAdministrationController(UserManager <KnigaUser> userManager, IPublishersService publishersService) { this.userManager = userManager; this.publishersService = publishersService; }