public void DepartmentUpdateTest()
        {
            string name = GenString(_r.Next(4, 9));
            string description = GenString(_r.Next(15, 20));

            OpenConnection();

            Department d = new Department(name, "This is a Unit Test Created" + description, _r.Next(0, 9));
            departmentService.Save(d);
            d.Name = "New " + GenString(_r.Next(4, 9));
            departmentService.Update(d);

            Assert.IsNotNull(departmentService.FindAllByProperty(Utils.DepartmentTableProperties.Name, d.Name));

            CloseConnection();
        }
        public void DepartmentSaveTest()
        {
            string name = GenString(_r.Next(4, 9));
            string description = GenString(_r.Next(15, 20));

            OpenConnection();

            Department d = new Department(name, "This is a Unit Test Created" + description, _r.Next(0, 9));

            Assert.IsInstanceOfType(departmentService.Save(d), typeof(int));

            CloseConnection();
        }