Exemple #1
0
        public FeedsController()
        {
            UserSettingsSection config = (UserSettingsSection)System.Configuration.ConfigurationManager.GetSection("userSettings");

            _repository = new FeedRepository(config.ConnectionString.Value);
            _services   = new FeedServices(_repository);
        }
Exemple #2
0
        public DefaultController()
        {
            UserSettingsSection config = (UserSettingsSection)System.Configuration.ConfigurationManager.GetSection("userSettings");

            _repository = new FeedRepository(config.ConnectionString.Value);
            _services   = new FeedServices(_repository);
            _builder    = new ViewModelBuilder(_repository);
        }
Exemple #3
0
 public FeedController(FeedServices feedService)
 {
     _feedService = feedService;
 }
 public ViewModelBuilder(FeedRepository repository)
 {
     _repository = repository;
     _services   = new FeedServices(repository);
 }