public NewsController(INewsStorage newsStorage, NewsBuilder newsBuilder, CommentBuilder commentBuilder, ICommentStorage commentStorage) { _newsStorage = newsStorage; _newsBuilder = newsBuilder; _commentBuilder = commentBuilder; _commentStorage = commentStorage; }
protected ByDisciplinesNotification( IByDisciplinesNotifiable notifiable, IDataContext context, INewsStorage <T> newsStorage) { this.notifiable = notifiable; this.context = context; this.newsStorage = newsStorage; }
public HotNewsCreator() { string storageConnectionString = ConfigurationManager.AppSettings["StorageConnectionString"]; string newsTableName = ConfigurationManager.AppSettings["NewsTableName"]; string hotNewsTableName = ConfigurationManager.AppSettings["HotNewsTableName"]; this.newsStorage = new NewsTableStorage(storageConnectionString, newsTableName); this.hotNewsStorage = new NewsTableStorage(storageConnectionString, hotNewsTableName); }
public RssParserService(ILogger logger, IConfigurationService configurationService, INewsStorage newsStorage, ObjectCache cache) { _logger = logger; _cache = cache; _configurationService = configurationService; _newsStorage = newsStorage; }
public void TestInitialize() { this.webService = WebApp.Start <Startup>("http://*:80/"); this.goClient = new GOClient(@"http://localhost/", "Alberto", "1234"); string connectionString = ConfigurationManager.AppSettings["StorageConnectionString"]; string userTable = ConfigurationManager.AppSettings["UserTableName"]; string newsTable = ConfigurationManager.AppSettings["NewsTableName"]; this.userStorage = new UserTableStorage(connectionString, userTable); this.newsStorage = new NewsTableStorage(connectionString, newsTable); this.goClient.CreateUser(userClient).Wait(); }
public void TestInitialize() { string frontendEndpoint = ConfigurationManager.AppSettings["FrontendTestEndpoint"]; this.goClient = new GOClient(frontendEndpoint, "Alberto", "1234"); string connectionString = ConfigurationManager.AppSettings["StorageConnectionString"]; string userTable = ConfigurationManager.AppSettings["UserTableName"]; string newsTable = ConfigurationManager.AppSettings["NewsTableName"]; this.userStorage = new UserTableStorage(connectionString, userTable); this.newsStorage = new NewsTableStorage(connectionString, newsTable); this.goClient.CreateUser(userClient).Wait(); }
private void RenewFactory() { if (fakeChannel != null) { return; } try { if (factory != null) { factory.Abort(); } factory = new ChannelFactory <INewsStorage>(endpointName); channel = factory.CreateChannel(); } catch (Exception) { Logger.Error("NewsStorageProxy: невозможно создать прокси"); channel = null; } }
public NewsBuilder(INewsRepository newsRepository, INewsStorage newsStorage) { _newsRepository = newsRepository; _newsStorage = newsStorage; }
public NewsController(INewsStorage newsStorage, NewsBuilder newsBuilder) { _newsStorage = newsStorage; _newsBuilder = newsBuilder; }
private void RenewFactory() { if (fakeChannel != null) return; try { if (factory != null) factory.Abort(); factory = new ChannelFactory<INewsStorage>(endpointName); channel = factory.CreateChannel(); } catch (Exception) { Logger.Error("NewsStorageProxy: невозможно создать прокси"); channel = null; } }
public FileController(IFileStorage repo, IUserRepository users, INewsStorage news) { repository = repo; Users = users; News = news; }
public NewsLetterService(INewsStorage storage) { this.newsStorage = storage; }
public NewsController(INewsStorage news, IFileStorage files, IHostingEnvironment env) { News = news; Files = files; environment = env; }
public HomeController(INewsStorage news) { News = news; }