private void frmOrganization_Load(object sender, EventArgs e) { cbEmployee.DataSource = LookUpQueries.GetEmployees(); cbEmployee.DisplayMember = "EmployeeDisplayName"; cbEmployee.ValueMember = EmployeeFieldIndex.EmployeeID.ToString(); AWHelper.SetWindowSizeAndLocation(this, Settings.Default.OrderSearchSizeLocation); }
private void FrmOrganizationStructureLoad(object sender, EventArgs e) { EmployeeCollection = LookUpQueries.GetEmployees(); EmployeeCollection.RemovedEntitiesTracker = new EmployeeCollection(); AWHelper.SetWindowSizeAndLocation(this, Settings.Default.OrganizationStructureSizeLocation); }
public void GetEmployeesTest() { var actual = LookUpQueries.GetEmployees(); Assert.AreEqual(290, actual.Count); }