public HomeController(ICourseData courseData, IUserData userData, IEventData eventData, INewsData newsData) { _courseData = courseData; _userData = userData; _eventData = eventData; _newsData = newsData; }
public NewsController(INewsData newsData, IMapper mapper, IHostingEnvironment env, UserManager <ApplicationUser> userManager) { _newsData = newsData; _mapper = mapper; _env = env; _userManager = userManager; }
public HomeController() { _firmsData = new FirmsData(); _referenceData = new ReferenceData(); _customerWritingData = new CustomerWritingData(); _newsData = new NewsData(); _popupData = new PopupData(); }
public HomeController(UserManager <ApplicationUser> userManager, IUserData userData, ICourseData courseData, IEventData eventData, INewsData newsData) { _userManager = userManager; _userData = userData; _courseData = courseData; _eventData = eventData; _newsData = newsData; }
//: base("/api/news") public NewsModule(INewsData newsData) { _newsData = newsData; this.RequiresAuthentication(); Get["/api/news"] = _ => View["News"]; //Negotiate //.WithModel() //.WithView("News"); //Response.AsJson(); }
public NewsStoriesController(INewsData newsData) : base(newsData) { }
public NewsController(INewsData newsData) { this.NewsData = newsData; }
public NewsController(INewsData data) : base(data) { }
public DuyuruHaberController() { _firmsData = new FirmsData(); _newsData = new NewsData(); }
protected BaseController(INewsData newsData) { this.NewsData = newsData; }
public NewsController(INewsData data, IUserIdProvider userIdProvider) : base(data, userIdProvider) { }
public NewsController(INewsData newsData) { _newsData = newsData; }
public EthioReporterCrawler(INewsData memoryNews) { _newsInterface = memoryNews; }
public BaseApiController(INewsData data) { Data = data; }
public BaseApiController(INewsData data, IUserIdProvider userIdProvider) { this.Data = data; this.UserIdProvider = userIdProvider; }
public HomeController(INewsData memoryNews) { _news = memoryNews; }
protected BaseApiController() { var context = new NewsDbContext(); this.data = new NewsData(context); }
public HomeController(INewsData newsData, IGreeter greeter) { _newsData = newsData; _greeter = greeter; }
protected BaseApiController(INewsData data, IUserProvider userProvider) { this.NewsData = data; this.UserProvider = userProvider; }
private void CleanDatabase() { using (var dbContext = new NewsContext()) { dbContext.News.Delete(); dbContext.Users.Delete(); dbContext.SaveChanges(); } this.repo = new NewsData(NewsContext.Create()); var user = new ApplicationUser { UserName = "******", Email = "*****@*****.**" }; this.repo.Users.Add(user); var news = new List<News> { new News { Title = "Seeding repositories", Content = "Some content.", PublishDate = DateTime.Parse("2000-01-20") }, new News { Title = "Web and cloud exam", Content = "There won't be any prepared unit tests.", PublishDate = DateTime.Parse("2015-09-12") } }; user.News.Add(news[0]); user.News.Add(news[1]); this.repo.Users.Add(user); this.repo.SaveChanges(); }
public NewsController() { _newsData = new NewsData(); }
public BaseController(INewsData data) { this.Data = data; }
public HomeController(INewsData newsData) { _newsData = newsData; }
public NewsController(INewsData data) { this.Data = data; }
public BaseApiController(INewsData data) { this.Data = data; }