Ejemplo n.º 1
0
        /// <summary>
        ///     Initializes a new instance of the <see cref="DepartmentManager" /> class.
        /// </summary>
        public DepartmentManager()
        {
            // this.CreateDepartment();
            DepartmentDataManager departmentDataManager = new DepartmentDataManager();

            departmentCollection = departmentDataManager.GetDepartmentCollection(string.Empty);
        }
Ejemplo n.º 2
0
        public void GetDepartmentCollectionTest()
        {
            DepartmentDataManager departmentDataManager = new DepartmentDataManager();

            IList <DepartmentInfo> departmentCollection = departmentDataManager.GetDepartmentCollection(string.Empty);

            Console.WriteLine("Department count = {0} ", departmentCollection.Count);

            foreach (DepartmentInfo departmentInfo in departmentCollection)
            {
                Console.WriteLine("Name = {0}; ID = {1}", departmentInfo.DepartmentName, departmentInfo.DepartmentId);
            }

            Assert.IsTrue(departmentCollection.Count > 0);
        }