public void Show_and_Read_Entity_In_EntryFormTest() { BaseEntryForm baseEntryForm = new BaseEntryForm(this.TaskProjectBLO); TaskProject taskProject = new TaskProjectBLO().CreateTestInstance(); // Set Default Values // Set Values foreach (var prorpertyInfo in taskProject.GetType().GetProperties()) { ConfigProperty configProperty = new ConfigProperty(prorpertyInfo, configEntity); IFieldTraitements fieldTraitement = BaseFieldTraitement.CreateInstance(configProperty); var value = fieldTraitement.GetTestValue(prorpertyInfo); // Set Value prorpertyInfo.SetValue(taskProject, value); } baseEntryForm.Entity = taskProject; // Show Entity to View baseEntryForm.ShowEntity(); // Read Entity from View baseEntryForm.ReadEntity(); }
private void Form1_Load(object sender, EventArgs e) { // Creat BLO Instances taskProjectBLO = new TaskProjectBLO(); traineeBLO = new TraineeBLO(); // Load Tasks Project listBoxTaskProject.DataSource = taskProjectBLO.GetData(); // Load Trainee traineeBindingSource.DataSource = traineeBLO.GetData(); this.showTainneeError(); }
public void GetDataTest() { TaskProjectBLO TaskProjectBLO = new TaskProjectBLO(); TaskProjectBLO.GetData(); }
public void TaskProjectBLOTest() { TaskProjectBLO TaskProjectBLO = new TaskProjectBLO(); }