Beispiel #1
0
        public static void ClassInitialize(TestContext context)
        {
            _serverUrl = ConfigurationManager.AppSettings["ServerUrl"];
            _apiKey    = ConfigurationManager.AppSettings["ApiKey"];
            _projects  = ConfigurationManager.AppSettings["Projects"];

            _cc = new CCTray(_serverUrl, _apiKey);
        }
Beispiel #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            _serverUrl = ConfigurationManager.AppSettings["ServerUrl"];
            _apiKey    = ConfigurationManager.AppSettings["ApiKey"];
            _projects  = ConfigurationManager.AppSettings["Projects"];

            _cc = new CCTray(_serverUrl, _apiKey);

            Response.AddHeader("Content-Type", "application/xml");
            Response.Write(_cc.GetProjectStatusAsCCTrayStatus(_projects));
        }