private SiteInfoResult ExecuteWithProperty(SiteInfoProperties properties) { var query = new SiteInfoMetaQuery { Properties = properties }; var result = _client.Query(query); return SiteInfoMetaQuery.ExtractResults(result); }
private SiteInfoResult ExecuteWithProperty(SiteInfoProperties properties) { var query = new SiteInfoMetaQuery { Properties = properties }; var result = _client.Query(query); return(SiteInfoMetaQuery.ExtractResults(result)); }
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); }