using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

    //public class TestCase
    //{
    //    public string Name { get; set; }
    //    public string Url { get; set; }
    //}

    public partial class JSTestPage : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Request.QueryString["TestCase"] != null)
            {
                string testPath = Request.QueryString["TestCase"];
                Page.ClientScript.RegisterClientScriptInclude("TestCase", Page.ResolveClientUrl("~/TestCases/" + testPath));
            }
            else
            {
                Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "Test", "CreateTestList();",true);
                //BindTestCases(CreateTestCasesList());
            }
        }


        //private List<TestCase> CreateTestCasesList()
        //{
        //    List<TestCase> list = new List<TestCase>();
        //    list.Add(new TestCase() { Name = "fwTest", Url = "Framework/fwTests.js" });
        //    list.Add(new TestCase() { Name = "ExtGrid", Url = "Framework/ExtGridTests.js" });
        //    list.Add(new TestCase() { Name = "MainPage", Url = "MainPage/mainPageTests.js" });
        //    list.Add(new TestCase() { Name = "BaseEntityPageFramework", Url = "Framework/BaseEntityPageFrameworkTests.js" });
        //    return list;
        //}

        
        //private void BindTestCases(List<TestCase> listOfSelectedProducts)
        //{
        //    // The the LIST as the DataSource
        //    this.Repeater1.DataSource = listOfSelectedProducts;

        //    // Then bind the repeater
        //    this.Repeater1.DataBind();
        //}

    }
