public FeedsController() { UserSettingsSection config = (UserSettingsSection)System.Configuration.ConfigurationManager.GetSection("userSettings"); _repository = new FeedRepository(config.ConnectionString.Value); _services = new FeedServices(_repository); }
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 FeedController(FeedServices feedService) { _feedService = feedService; }
public ViewModelBuilder(FeedRepository repository) { _repository = repository; _services = new FeedServices(repository); }