Exemplo n.º 1
0
        public void TestCreateProessFromBLL()
        {
            BLL.Process.ProcessLogic pl = new BLL.Process.ProcessLogic();

            int id = pl.CreateProcess("HR");

            Assert.AreEqual(pl.GetProcess(id).Name, "HR");
        }
Exemplo n.º 2
0
        protected void createBtn_Click(object sender, EventArgs e)
        {
            if (Page.IsValid)
            {
                Model.Process p = new Model.Process()
                {
                    Name = Name.Text
                };

                BLL.Process.ProcessLogic pl = new BLL.Process.ProcessLogic();
                int res = pl.CreateProcess(p);
                if (res > 0)
                {
                    // Server.TransferRequest("../About.aspx", true);
                    Response.Redirect("/Admin");
                }
            }
        }
Exemplo n.º 3
0
 public Register()
 {
     pl = new BLL.Process.ProcessLogic();
     sl = new BLL.StaffLogic();
 }
Exemplo n.º 4
0
 public ConfirmStaff()
 {
     processLogic = new BLL.Process.ProcessLogic();
     staffLogic   = new BLL.StaffLogic();
 }
Exemplo n.º 5
0
 protected void Page_Load(object sender, EventArgs e)
 {
     BLL.Process.ProcessLogic pl = new BLL.Process.ProcessLogic();
 }