protected override void SetUp() { this.PasswordUnity = new PasswordUnity(); this.PasswordUnityUserLoginName = TF.GetConfig().Properties["PasswordUnityUserLoginName"]; this.PasswordUnityUserPassword = TF.GetConfig().Properties["PasswordUnityUserPassword"]; this.PasswordUnityUserInValidPassword = TF.GetConfig().Properties["PasswordUnityUserInValidPassword"]; }
protected override void SetUp() { this.ComputerCn = TF.GetConfig().Properties["ComputerCn"]; this.ComputerOperatingSystemName = TF.GetConfig().Properties["ComputerOperatingSystemName"]; this.ComputerOperatingSystemVersion = TF.GetConfig().Properties["ComputerOperatingSystemVersion"]; this.ComputerOperatingSystemServicePack = TF.GetConfig().Properties["ComputerOperatingSystemServicePack"]; this.ComputerDnsName = TF.GetConfig().Properties["ComputerDnsName"]; this.ComputerSiteName = TF.GetConfig().Properties["ComputerSiteName"]; this.UserManageComputerCn = TF.GetConfig().Properties["UserManageComputerCn"]; this.ComputerManagedByUserCn = TF.GetConfig().Properties["ComputerManagedByUserCn"]; this.GroupManageComputerCn = TF.GetConfig().Properties["GroupManageComputerCn"]; this.ComputerManagedByGroupCn = TF.GetConfig().Properties["ComputerManagedByGroupCn"]; this.ContactManageComputerCn = TF.GetConfig().Properties["ContactManageComputerCn"]; this.ComputerManagedByContactCn = TF.GetConfig().Properties["ComputerManagedByContactCn"]; }
public void TestAddSameNameOrganizationalUnitObject() { using (var organizationalUnitObject = ADObject.FindOneByDN(this.ADOperator, TF.GetConfig().Properties[ "SameOrganizationalUnitDN"]) as OrganizationalUnitObject) { if (organizationalUnitObject != null) { organizationalUnitObject.Delete(); } } using (var organizationalUnitObject = ADObject.FindOneByDN(this.ADOperator, TF.GetConfig().Properties["OrganizationalUnitDN"]) as OrganizationalUnitObject) { using (var addOrganizationalUnitObject = organizationalUnitObject.AddOrganizationalUnit(TF.GetConfig().Properties["SameOrganizationalUnitName"])) { Assert.AreEqual(TF.GetConfig().Properties["SameOrganizationalUnitDN"], addOrganizationalUnitObject.DistinguishedName); } } }
protected override void SetUp() { this.GroupGuid = new Guid(TF.GetConfig().Properties["GroupGuid"]); this.GroupCn = TF.GetConfig().Properties["GroupCn"]; this.GroupSid = TF.GetConfig().Properties["GroupSid"]; this.GroupSAMAccountName = TF.GetConfig().Properties["GroupSAMAccountName"]; this.GroupEmail = TF.GetConfig().Properties["GroupEmail"]; this.GroupNotes = TF.GetConfig().Properties["GroupNotes"]; this.GroupTokenGroupSid = TF.GetConfig().Properties["GroupTokenGroupSid"]; this.GroupMember = TF.GetConfig().Properties["GroupMember"]; this.GroupType = TF.GetConfig().Properties["GroupType"]; this.GroupScope = TF.GetConfig().Properties["GroupScope"]; var mock = new Mock <IADOperator>(); var adOperatorInfo = new ADOperatorInfo { UserLoginName = TF.GetConfig().Properties["IPDomainUserName"], Password = TF.GetConfig().Properties["IPDomainUserPassword"], OperateDomainName = TF.GetConfig().Properties["IPDomainName"], }; mock.Setup(m => m.GetOperatorInfo()).Returns(adOperatorInfo); this.IPADOperator = mock.Object; }
public void FixtureSetUp() { // Normal var mock = new Mock <IADOperator>(); var adOperatorInfo = new ADOperatorInfo { UserLoginName = TF.GetConfig().Properties["DomainUserName"], Password = TF.GetConfig().Properties["DomainUserPassword"], OperateDomainName = TF.GetConfig().Properties["DomainName"], }; mock.Setup(m => m.GetOperatorInfo()).Returns(adOperatorInfo); this.ADOperator = mock.Object; // Anonymous var anonymousMock = new Mock <IADOperator>(); adOperatorInfo = new ADOperatorInfo { UserLoginName = String.Empty, Password = String.Empty, OperateDomainName = TF.GetConfig().Properties["DomainName"], }; anonymousMock.Setup(m => m.GetOperatorInfo()).Returns(adOperatorInfo); this.AnonymousADOperator = anonymousMock.Object; // Large amount var largeAmountMock = new Mock <IADOperator>(); var largeAmountADOperatorInfo = new ADOperatorInfo { UserLoginName = TF.GetConfig().Properties["LargeAmountDomainUserName"], Password = TF.GetConfig().Properties["LargeAmountDomainUserPassword"], OperateDomainName = TF.GetConfig().Properties["LargeAmountDomainName"], }; largeAmountMock.Setup(m => m.GetOperatorInfo()).Returns(largeAmountADOperatorInfo); this.LargeAmountADOperator = largeAmountMock.Object; this.SetUp(); }
protected override void SetUp() { this.UserCn = TF.GetConfig().Properties["UserCn"]; this.GroupGuid = new Guid(TF.GetConfig().Properties["GroupGuid"]); this.QueryRootOUName = TF.GetConfig().Properties["QueryRootOUName"]; }
protected override void SetUp() { this.PasswordSettingsUserCn = TF.GetConfig().Properties["PasswordSettingsUserCn"]; }
protected override void SetUp() { this.DomainGroupPolicyMinimumPasswordLength = Int32.Parse(TF.GetConfig().Properties["DomainGroupPolicyMinimumPasswordLength"]); this.DomianIsMustMeetComplexityRequirments = Boolean.Parse(TF.GetConfig().Properties["DomianIsMustMeetComplexityRequirments"]); this.CurrentDomainName = TF.GetConfig().Properties["CurrentDomainName"]; }
protected override void SetUp() { this.OrganizaionalUnitOU = TF.GetConfig().Properties["OrganizaionalUnitOU"]; this.OrganizaionalUnitStreet = TF.GetConfig().Properties["OrganizaionalUnitStreet"]; }
protected override void SetUp() { this.UserCn = TF.GetConfig().Properties["UserCn"]; this.UserSid = TF.GetConfig().Properties["UserSid"]; this.UserCO = TF.GetConfig().Properties["UserCO"]; this.UserC = TF.GetConfig().Properties["UserC"]; this.UserCompany = TF.GetConfig().Properties["UserCompany"]; this.UserCountryCode = Int32.Parse(TF.GetConfig().Properties["UserCountryCode"]); this.UserCanonicalName = TF.GetConfig().Properties["UserCanonicalName"]; this.UserCreateTime = DateTime.Parse(TF.GetConfig().Properties["UserCreateTime"]); this.UserDepartment = TF.GetConfig().Properties["UserDepartment"]; this.UserDescription = TF.GetConfig().Properties["UserDescription"]; this.UserDirectReport = TF.GetConfig().Properties["UserDirectReport"]; this.UserDisplayName = TF.GetConfig().Properties["UserDisplayName"]; this.UserFax = TF.GetConfig().Properties["UserFax"]; this.UserOtherFax = TF.GetConfig().Properties["UserOtherFax"]; this.UserGivenName = TF.GetConfig().Properties["UserGivenName"]; this.UserHomePhone = TF.GetConfig().Properties["UserHomePhone"]; this.UserOtherHomePhone = TF.GetConfig().Properties["UserOtherHomePhone"]; this.UserNotes = TF.GetConfig().Properties["UserNotes"]; this.UserInitials = TF.GetConfig().Properties["UserInitials"]; this.UserIpPhone = TF.GetConfig().Properties["UserIpPhone"]; this.UserOtherIpPhone = TF.GetConfig().Properties["UserOtherIpPhone"]; this.UserCity = TF.GetConfig().Properties["UserCity"]; this.UserManager = TF.GetConfig().Properties["UserManager"]; this.UserMemberOf = TF.GetConfig().Properties["UserMemberOf"]; this.UserMobile = TF.GetConfig().Properties["UserMobile"]; this.UserOtherMobile = TF.GetConfig().Properties["UserOtherMobile"]; this.UserMsDS_PrincipalName = TF.GetConfig().Properties["UserMsDS_PrincipalName"]; this.UserPager = TF.GetConfig().Properties["UserPager"]; this.UserOtherPager = TF.GetConfig().Properties["UserOtherPager"]; this.UserTelephone = TF.GetConfig().Properties["UserTelephone"]; this.UserOtherTelephone = TF.GetConfig().Properties["UserOtherTelephone"]; this.UserOffice = TF.GetConfig().Properties["UserOffice"]; this.UserZipOrPostalCode = TF.GetConfig().Properties["UserZipOrPostalCode"]; this.UserPostOfficeBox = TF.GetConfig().Properties["UserPostOfficeBox"]; this.UserSAMAccountName = TF.GetConfig().Properties["UserSAMAccountName"]; this.UserLastName = TF.GetConfig().Properties["UserLastName"]; this.UserStateOrProvince = TF.GetConfig().Properties["UserStateOrProvince"]; this.UserStreetAddress = TF.GetConfig().Properties["UserStreetAddress"]; this.UserJobTitle = TF.GetConfig().Properties["UserJobTitle"]; this.UserWebPage = TF.GetConfig().Properties["UserWebPage"]; this.UserOtherWebPage = TF.GetConfig().Properties["UserOtherWebPage"]; this.UserPrincipalName = TF.GetConfig().Properties["UserPrincipalName"]; this.UserTokenGroupSid = TF.GetConfig().Properties["UserTokenGroupSid"]; this.UserAccountControlType = TF.GetConfig().Properties["UserAccountControlType"]; this.UserIsMustChangePwdNextLogon = Boolean.Parse(TF.GetConfig().Properties["UserIsMustChangePwdNextLogon"]); this.UserIsLocked = Boolean.Parse(TF.GetConfig().Properties["UserIsLocked"]); this.UserIsEnabled = Boolean.Parse(TF.GetConfig().Properties["UserIsEnabled"]); this.UserEmail = TF.GetConfig().Properties["UserEmail"]; this.UserResetPasswordUserCN = TF.GetConfig().Properties["UserResetPasswordUserCN"]; this.UserResetPasswordUserPassword = TF.GetConfig().Properties["UserResetPasswordUserPassword"]; this.UserIsDomainAdmin = Boolean.Parse(TF.GetConfig().Properties["UserIsDomainAdmin"]); this.UserIsAccountOperator = Boolean.Parse(TF.GetConfig().Properties["UserIsAccountOperator"]); this.UserManagerCn = TF.GetConfig().Properties["UserManagerCn"]; this.UserDirectReportUserCn = TF.GetConfig().Properties["UserDirectReportUserCn"]; this.UserDirectReportContactCn = TF.GetConfig().Properties["UserDirectReportContactCn"]; this.CustomAttributeUserCn = TF.GetConfig().Properties["CustomAttributeUserCn"]; this.UserSpecialCharCn = TF.GetConfig().Properties["UserSpecialCharCn"]; this.ToOrganizationalUnitDN = TF.GetConfig().Properties["ToOrganizationalUnitDN"]; }
protected override void SetUp() { this.ContainerCN = TF.GetConfig().Properties["ContainerCN"]; this.ContainerDescription = TF.GetConfig().Properties["ContainerDescription"]; }
protected override void SetUp() { this.AndFilterString = TF.GetConfig().Properties["AndFilterString"]; }
protected override void SetUp() { this.CustomAttributeUserCn = TF.GetConfig().Properties["CustomAttributeUserCn"]; }