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;
 }
Esempio n. 3
0
 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)
 {
 }
Esempio n. 7
0
 public NewsController(INewsData newsData)
 {
     this.NewsData = newsData;
 }
 public NewsController(INewsData data)
     : base(data)
 {
 }
 public DuyuruHaberController()
 {
     _firmsData = new FirmsData();
     _newsData  = new NewsData();
 }
Esempio n. 10
0
 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;
 }
Esempio n. 14
0
 public BaseApiController(INewsData data)
 {
     Data = data;
 }
 public BaseApiController(INewsData data, IUserIdProvider userIdProvider)
 {
     this.Data = data;
     this.UserIdProvider = userIdProvider;
 }
Esempio n. 16
0
 public HomeController(INewsData memoryNews)
 {
     _news = memoryNews;
 }
Esempio n. 17
0
        protected BaseApiController()
        {
            var context = new NewsDbContext();

            this.data = new NewsData(context);
        }
Esempio n. 18
0
 public HomeController(INewsData newsData, IGreeter greeter)
 {
     _newsData = newsData;
     _greeter  = greeter;
 }
Esempio n. 19
0
 public NewsController(INewsData newsData)
 {
     this.NewsData = newsData;
 }
 public NewsStoriesController(INewsData newsData)
     : base(newsData)
 {
 }
Esempio n. 21
0
 protected BaseApiController(INewsData data, IUserProvider userProvider)
 {
     this.NewsData = data;
     this.UserProvider = userProvider;
 }
Esempio n. 22
0
        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();
        }
Esempio n. 23
0
 public NewsController()
 {
     _newsData = new NewsData();
 }
Esempio n. 24
0
 public BaseController(INewsData data)
 {
     this.Data = data;
 }
 public NewsController(INewsData data)
     : base(data)
 {
 }
 public HomeController(INewsData newsData)
 {
     _newsData = newsData;
 }
 public NewsController(INewsData data)
 {
     this.Data = data;
 }
Esempio n. 28
0
 public BaseApiController(INewsData data)
 {
     this.Data = data;
 }
Esempio n. 29
0
 protected BaseController(INewsData newsData)
 {
     this.NewsData = newsData;
 }