public DefaultController() { UserSettingsSection config = (UserSettingsSection)System.Configuration.ConfigurationManager.GetSection("userSettings"); _repository = new FeedRepository(config.ConnectionString.Value); _services = new FeedServices(_repository); _builder = new ViewModelBuilder(_repository); }
public FeedsController() { UserSettingsSection config = (UserSettingsSection)System.Configuration.ConfigurationManager.GetSection("userSettings"); _repository = new FeedRepository(config.ConnectionString.Value); _services = new FeedServices(_repository); }
public FeedServices(FeedRepository repository) { _repository = repository; }
public ViewModelBuilder(FeedRepository repository) { _repository = repository; _services = new FeedServices(repository); }