Ejemplo n.º 1
0
        public void DashboardMgrConstructorTest()
        {
            // act
            HttpContextBase context = null;
            DashboardMgr target = new DashboardMgr(context);

            // assert
            Assert.IsNotNull(target);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Pull Html file from Windows Azure only once, store it,
        /// save file name.
        /// </summary>
        /// <returns>filename as string</returns>
        public static string RunBeforeTests_FeedListFile()
        {
            HttpContextBase httpContext = null;
            DashboardMgr dashboardMgr = new DashboardMgr(httpContext);

            dashboardMgr.SetRssFeedsFromUri(GetDataPath());

            return string.Empty;
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="DashboardBaseController" /> class.
        /// Builds model for web app that most/all
        /// controllers use.
        /// </summary>
        public DashboardBaseController()
        {
            this.feedConfiguration = new FeedConfiguration(this.HttpContext);

            this.feedMgr = new DashboardMgr(this.HttpContext);
            this.issueMgr = new IssueMgr(this.HttpContext);

            this.feedModel = new DashboardModel();
            this.issueModel = new DashboardIssueModel();
        }