示例#1
0
        public void GetAllLocalOsUsers()
        {
            // Arrange
            var ssoAdminClient = new SsoAdminClient(_vc, _user, _password, new AcceptAllX509CertificateValidator());

            // Act
            var actual = ssoAdminClient.GetLocalUsers("", "localos").ToArray();

            // Assert
            Assert.NotNull(actual);
            Assert.Greater(actual.Length, 0);
        }
示例#2
0
        public void GetRootLocalOsUsers()
        {
            // Arrange
            var ssoAdminClient = new SsoAdminClient(_vc, _user, _password, new AcceptAllX509CertificateValidator());

            // Act
            var actual = ssoAdminClient.GetLocalUsers("root", "localos").ToArray();

            // Assert
            Assert.NotNull(actual);
            Assert.AreEqual(1, actual.Length);
            Assert.AreEqual("root", actual[0].Name);
            Assert.AreEqual("localos", actual[0].Domain);
        }