Exemplo n.º 1
0
 public RssReadersJob()
 {
     var itanDatabaseContext = new ItanDatabaseContext();
     var userRepository = new UserRepository(itanDatabaseContext);
     var rssChannelsRepository = new RssChannelsRepository(itanDatabaseContext);
     var rssChannelsSubscriptionsRepository = new RssChannelsSubscriptionsRepository(itanDatabaseContext);
     var rssEntriesToReadRepository = new RssEntriesToReadRepository(itanDatabaseContext);
     var rssEventRepository = new RssEventRepository(itanDatabaseContext);
     this.testService = new TestService(userRepository, rssChannelsRepository, rssChannelsSubscriptionsRepository, rssEntriesToReadRepository, rssEventRepository, itanDatabaseContext);
 }
Exemplo n.º 2
0
 public TestService(
     IUserRepository usersRepository,
     IRssChannelsRepository rssChannelsRepository,
     IRssChannelsSubscriptionsRepository rssSubscriptionRepository,
     IRssEntriesToReadRepository rssToReadRepository,
     IRssEventRepository rssEventRepository,
     ItanDatabaseContext database)
 {
     this.usersRepository = usersRepository;
     this.rssChannelsRepository = rssChannelsRepository;
     this.rssSubscriptionRepository = rssSubscriptionRepository;
     this.rssToReadRepository = rssToReadRepository;
     this.rssEventRepository = rssEventRepository;
     this.database = database;
 }
Exemplo n.º 3
0
        public RssUpdateJob()
        {
            var configureMapper = IsThereAnyNewsAutomapper.ConfigureMapper();

            var itanDatabaseContext = new ItanDatabaseContext();
            var updateRepository = new UpdateRepository(itanDatabaseContext);
            var rssEntriesRepository = new RssEntriesRepository(itanDatabaseContext, configureMapper);
            var rssChannelsRepository = new RssChannelsRepository(itanDatabaseContext);
            var rssChannelUpdateRepository = new RssChannelUpdateRepository(itanDatabaseContext);

            ISyndicationFeedAdapter syndicationFeedAdapter = new SyndicationFeedAdapter(configureMapper);

            this.updateService = new UpdateService(
                updateRepository,
                rssEntriesRepository,
                rssChannelsRepository,
                rssChannelUpdateRepository,
                syndicationFeedAdapter,
                configureMapper);
        }
 public ApplicationSettingsRepository(ItanDatabaseContext database)
 {
     this.database = database;
 }
 public RssEntriesRepository(ItanDatabaseContext database, IMapper mapper)
 {
     this.database = database;
     this.mapper = mapper;
 }
 public RssEntriesToReadRepository(ItanDatabaseContext database)
 {
     this.database = database;
 }
 public SocialLoginRepository(ItanDatabaseContext itanDatabaseContext)
 {
     this.itanDatabaseContext = itanDatabaseContext;
 }
 public ContactAdministrationEventRepository(ItanDatabaseContext database)
 {
     this.database = database;
 }
 public UserSubscriptionEntryToReadRepository(ItanDatabaseContext database)
 {
     this.database = database;
 }
 public RssChannelUpdateRepository(ItanDatabaseContext database)
 {
     this.database = database;
 }
 public UsersSubscriptionRepository(ItanDatabaseContext database)
 {
     this.database = database;
 }
 public RssActionRepository(ItanDatabaseContext database)
 {
     this.database = database;
 }
Exemplo n.º 13
0
 public RssEventRepository(ItanDatabaseContext database)
 {
     this.database = database;
 }
 public StatisticsRepository(ItanDatabaseContext database)
 {
     this.database = database;
 }
 public ExceptionRepository(ItanDatabaseContext database)
 {
     this.database = database;
 }
 public EventRssChannelCreatedRepository(ItanDatabaseContext database)
 {
     this.database = database;
 }
 public RssChannelsSubscriptionsRepository(ItanDatabaseContext database)
 {
     this.database = database;
 }
Exemplo n.º 18
0
 public UserRepository(ItanDatabaseContext database)
 {
     this.database = database;
 }