private SiteInfoResult ExecuteWithProperty(SiteInfoProperties properties)
        {
            var query = new SiteInfoMetaQuery { Properties = properties };

            var result = _client.Query(query);
            return SiteInfoMetaQuery.ExtractResults(result);
        }
Beispiel #2
0
        private SiteInfoResult ExecuteWithProperty(SiteInfoProperties properties)
        {
            var query = new SiteInfoMetaQuery {
                Properties = properties
            };

            var result = _client.Query(query);

            return(SiteInfoMetaQuery.ExtractResults(result));
        }
Beispiel #3
0
        public void DbReplicationLag()
        {
            var query = new SiteInfoMetaQuery {
                Properties = SiteInfoProperties.DbReplicationLag, ShowAllDb = true
            };
            var result = _client.Query(query);

            var dbReplicationLag = SiteInfoMetaQuery.ExtractResults(result).DbReplicationLag;

            Assert.NotNull(dbReplicationLag);
            Assert.NotEmpty(dbReplicationLag);
            Assert.True(dbReplicationLag.Count > 1);
        }
Beispiel #4
0
        public void UserGroups()
        {
            var query = new SiteInfoMetaQuery {
                Properties = SiteInfoProperties.UserGroups, NumberInGroup = true
            };
            var result = _client.Query(query);

            var userGroups = SiteInfoMetaQuery.ExtractResults(result).UserGroups;

            Assert.NotNull(userGroups);
            Assert.NotEmpty(userGroups);
            Assert.NotEmpty(userGroups[0].Rights);
            Assert.True(userGroups.First(ug => ug.Name == "user").UserCount > 1);
        }
        public void DbReplicationLag()
        {
            var query = new SiteInfoMetaQuery { Properties = SiteInfoProperties.DbReplicationLag, ShowAllDb = true };
            var result = _client.Query(query);

            var dbReplicationLag = SiteInfoMetaQuery.ExtractResults(result).DbReplicationLag;

            Assert.NotNull(dbReplicationLag);
            Assert.NotEmpty(dbReplicationLag);
            Assert.True(dbReplicationLag.Count > 1);
        }
        public void UserGroups()
        {
            var query = new SiteInfoMetaQuery { Properties = SiteInfoProperties.UserGroups, NumberInGroup = true };
            var result = _client.Query(query);

            var userGroups = SiteInfoMetaQuery.ExtractResults(result).UserGroups;

            Assert.NotNull(userGroups);
            Assert.NotEmpty(userGroups);
            Assert.NotEmpty(userGroups[0].Rights);
            Assert.True(userGroups.First(ug => ug.Name == "user").UserCount > 1);
        }