public List <Mapping> singlemapTest([PexAssumeUnderTest] MappingBLL target, string idmap) { List <Mapping> result = target.singlemap(idmap); return(result); // TODO: add assertions to method MappingBLLTest.singlemapTest(MappingBLL, String) }
private void GUI_Syllabus_MethodMap_Dialog_Load(object sender, EventArgs e) { if (p.getLock(idp) == true) { rtsys.ReadOnly = true; rtpro.ReadOnly = true; rtmethod.ReadOnly = true; txtpart1.ReadOnly = true; txtpart2.ReadOnly = true; txtpart3.ReadOnly = true; txtpercent1.ReadOnly = true; txtpercent2.ReadOnly = true; txtpercent3.ReadOnly = true; txtdesity.ReadOnly = true; txtcount.ReadOnly = true; btnSave.Enabled = false; } rtsys.Text = map.singlemap(idmap).Single().SyllabusOutcome; rtpro.Text = map.singlemap(idmap).Single().ProgramOutcome; rtmethod.Text = map.singlemap(idmap).Single().Methods; txtpart1.Text = map.singlemap(idmap).Single().FirstPart; txtpart2.Text = map.singlemap(idmap).Single().SecondPart; txtpart3.Text = map.singlemap(idmap).Single().ThirdPart; txtpercent1.Text = map.singlemap(idmap).Single().FirstPercent.ToString(); txtpercent2.Text = map.singlemap(idmap).Single().FirstPercent.ToString(); txtpercent3.Text = map.singlemap(idmap).Single().FirstPercent.ToString(); txtdesity.Text = map.singlemap(idmap).Single().desity.ToString(); int count = 100; try { foreach (Mapping item in map.listmap(ids)) { count -= int.Parse(item.desity.Value.ToString()); } ; }catch { count = 100; } txtcount.Text = count.ToString() + "%"; txtcount.ReadOnly = true; rtsys.ReadOnly = true; rtpro.ReadOnly = true; }