protected override void SetUp()
        {
            button = new ButtonTester("LokalizacjaGrid_SearchBtn", CurrentWebForm);
            filterValue = new TextBoxTester("LokalizacjaGrid_ValueTxt", CurrentWebForm);
            next = new MyLinkTester("Next", CurrentWebForm);
            prev = new MyLinkTester("Prev", CurrentWebForm);
            last = new MyLinkTester("Last", CurrentWebForm);
            first = new MyLinkTester("First", CurrentWebForm);
            //            itemsCount = new LabelTester("ItemsCount", CurrentWebForm);
            currentPage = new LabelTester("CurrentPage", CurrentWebForm);
            filterField = new DropDownListTester("LokalizacjaGrid_FilterList", CurrentWebForm);

            Dm.DeleteSql<Lokalizacja>("Nazwa like 'SSS%'");
            Lokalizacja l1;
            for (int i = 0; i < 80; i++)
            {
                l1 = Lokalizacja.GetWellKnown();
                l1.Nazwa = "SSS" + i.ToString().PadLeft(3, '0');
                l1.Skrot = "LP" + i.ToString().PadLeft(3, '0');

                l1.Save(null);
            }

            base.SetUp();
        }
Exemple #2
0
        protected override void SetUp()
        {
            button=new ButtonTester("WniosekList1_SearchBtn", CurrentWebForm);
            filterValue = new TextBoxTester("WniosekList1_ValueTxt", CurrentWebForm);
            next = new MyLinkTester("Next", CurrentWebForm);
            prev = new MyLinkTester("Prev", CurrentWebForm);
            last = new MyLinkTester("Last", CurrentWebForm);
            first = new MyLinkTester("First", CurrentWebForm);
            itemsCount = new LabelTester("ItemsCount", CurrentWebForm);
            currentPage = new LabelTester("CurrentPage", CurrentWebForm);
            filterField = new DropDownListTester("WniosekList1_FilterList", CurrentWebForm);
            Dm.DeleteSql<Wniosek>("Sygnatura like 'SS%'");
            Wniosek w1;
            for (int i = 0; i < 80; i++)
            {
                w1 = Wniosek.GetWellKnown("olo", DateTime.Now);
                w1.Sygnatura = "SS" + i.ToString().PadLeft(3, '0');
                w1.Wnioskodawca.Pesel = "WP" + i.ToString().PadLeft(3, '0');
                w1.Wnioskodawca.Nazwisko = "WN" + i.ToString().PadLeft(3, '0');
                w1.Stypendysta.Pesel = "SP" + i.ToString().PadLeft(3, '0');
                w1.Stypendysta.Nazwisko = "SN" + i.ToString().PadLeft(3, '0');

                w1.Save(null);
            }
            base.SetUp();
        }