Example #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         Checker.AssertEqual(0, MockEntityDAO.Instance.FindAll().Count);
         CustomHTTPModule.Enabled = false;
         SuccessMessage1.Show();
     }
 }
Example #2
0
 protected void Next(object sender, EventArgs e)
 {
     foreach (string s in me.StringList) //lazyload without getting the sessionfirst
     {
         Checker.AssertEqual(s.Contains("testString"), true);
     }
     SuccessMessage1.Show();
     me.Delete();
     btnNext.Visible = false;
     bf.CurrentConversation.FinishSpan();
 }
Example #3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         try {
             IList <MockEntity> result = MockEntityDAO.Instance.FindAll();
             if (result.Contains((MockEntity)Session["mo"]))
             {
                 SuccessMessage1.Show();
             }
             else
             {
                 Literal1.Text = "rediection failed, transaction in the last page isn't committed ";
             }
         }
         catch (System.Data.SqlClient.SqlException e1)
         {
             Literal1.Text = "Redirection failed - " + e1.Message + " the last transaction is still alive.";
         }
     }
 }
 protected void btnClick(object sender, EventArgs e)
 {
     Checker.AssertEqual(2, i);
     btn.Visible = false;
     SuccessMessage1.Show();
 }
Example #5
0
 protected void LinkButton1_Click(object sender, EventArgs e)
 {
     GridView1.Visible = false;
     SuccessMessage1.Show();
 }
Example #6
0
 protected void Page_Load(object sender, EventArgs e)
 {
     Checker.AssertEqual(new BurrowFramework().CurrentConversation.IsSpanning, true);
     Checker.AssertEqual(Session["conversationId"], new BurrowFramework().CurrentConversation.Id);
     SuccessMessage1.Show();
 }
 protected void Button1_Click(object sender, EventArgs e)
 {
     Checker.AssertEqual(1, count);
     SuccessMessage1.Show();
     Button1.Visible = false;
 }