public void GetEmployeeNameSuccess2()
        {
            ManageDirectoryServices manageDirectoryServices = new ManageDirectoryServices();
            var repcontext = manageDirectoryServices.GetEmployee("what, dana", "displayname");
            var flag       = repcontext.DirectReports.Count > 0 ? true : false;

            Assert.AreEqual(true, flag);
        }
        public void GetEmployeeSuccess()
        {
            ManageDirectoryServices manageDirectoryServices = new ManageDirectoryServices();
            var searchTemplate = new System.DirectoryServices.AccountManagement.UserPrincipal(manageDirectoryServices.Context)
            {
                SamAccountName = MSID,
                EmailAddress   = EMAIL,
                EmployeeId     = EMPLOYEEID
            };
            var context = manageDirectoryServices.GetEmployee(searchTemplate);

            Assert.AreEqual(MSID, context.User.SamAccountName);
        }