コード例 #1
0
 public StorySentHandler(IStoriesService storiesService, ITagsService tagsService,
                         IUsersService usersService)
 {
     _storiesService = storiesService;
     _tagsService    = tagsService;
     _usersService   = usersService;
 }
コード例 #2
0
 public HomeController(ISupplierService supplierService,
                       IStoriesService storiesService,
                       IImportMethodHelper importMethodHelper)
 {
     _supplierService    = supplierService;
     _storiesService     = storiesService;
     _importMethodHelper = importMethodHelper;
 }
コード例 #3
0
        public StoriesServiceTest(ITestOutputHelper testOutputHelper)
        {
            storiesRepository = new Mock <IStoriesRepository>();
            mapper            = new Mock <IMapper>();
            storiesService    = new StoriesService(storiesRepository.Object, mapper.Object);


            this.testOutputHelper = testOutputHelper;
        }
コード例 #4
0
        public void Init()
        {
            IStoryDALService storyDALService = new StoryDALService();

            var config = new MapperConfiguration(cfg => {
                cfg.AddProfile <StoriesProfile>();
            });
            IMapper mapper = config.CreateMapper();

            storyService = new StoriesService(storyDALService, mapper);
        }
コード例 #5
0
        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));
        }
コード例 #6
0
 public StoriesController(IStoriesService storyService, IRatingsService ratingsService)
 {
     this.storyService   = storyService;
     this.ratingsService = ratingsService;
 }
コード例 #7
0
 public StoriesController(IStoriesService storiesService,
                          UserManager <GoUser> userManager)
 {
     this.storiesService = storiesService;
     this.userManager    = userManager;
 }
コード例 #8
0
 public StoryRatedHandler(IStoriesService storiesService)
 {
     _storiesService = storiesService;
 }
コード例 #9
0
 public StoriesController(IStoriesService storiesService)
 {
     _storiesService = storiesService;
 }
コード例 #10
0
 public StoryViewModel(IStoriesService storyService,
                       IMapper mapper) : base(mapper)
 {
     this.storyService = storyService;
 }
コード例 #11
0
 public StoriesController(IStoriesService storiesService, IFeedService feedService)
 {
     _storiesService = storiesService;
     _feedService    = feedService;
 }
コード例 #12
0
 public NewsController(IStoriesService storiesService, IMapper mapper)
 {
     this.storiesService = storiesService;
     this.mapper         = mapper;
 }