protected void PresetButton_Click(object sender, EventArgs e) { JobController sysmgr = new JobController(); int presetid = int.Parse(PresetDDL.SelectedValue); StandardJob job = sysmgr.GetPresetsById(presetid); Description.Text = job.Description; Hours.Text = job.StandardHours.ToString(); }
public void TestMethod1() { Config config = new Config(); config.AddProperty(new DescriptionPropertyDefinition(), new string[] { "job1", "standard job" }); Job job = new StandardJob(); job.LoadConfig(config); job.CreateRepository("jobs"); Assert.AreEqual(job.Name, "job1"); }