예제 #1
0
        public bool AddMapTest(
            [PexAssumeUnderTest] MappingBLL target,
            string idS,
            string sys,
            string program
            )
        {
            bool result = target.AddMap(idS, sys, program);

            return(result);
            // TODO: add assertions to method MappingBLLTest.AddMapTest(MappingBLL, String, String, String)
        }
예제 #2
0
        private void btnSave_Click(object sender, EventArgs e)
        {
            string sts = lsSyllabusOut.GetItemValue(index).ToString();

            List <string> lzs = new List <string>();

            foreach (ProgramOutcome item in lsProgramOut.CheckedItems)
            {
                lzs.Add(item.id);
            }
            string prostring = map.createString(lzs);

            if (map.checkexistid(sts) == true)
            {
                map.ChangePro(sts, prostring);
            }
            else
            {
                map.AddMap(idsy, sts, prostring);
            }
            MessageBox.Show("Lưu Liên Kết Thành Công");
        }