Exemple #1
0
        public void CanPreviewViews()
        {            
            var preview = new PreviewViewRequest()
                              {
                                  View = new PreviewView()
                                             {
                                                 All =
                                                     new List<All>()
                                                         {new All() {Field = "status", Value = "open", Operator = "is"}},
                                                 Output =
                                                     new PreviewViewOutput() {Columns = new List<string>() {"subject"}}
                                             }
                              };

            var previewRes = api.Views.PreviewView(preview);
            Assert.Greater(previewRes.Rows.Count, 0);
            Assert.Greater(previewRes.Columns.Count, 0);
        }
Exemple #2
0
 public async Task<ExecutedViewResponse> PreviewViewAsync(PreviewViewRequest preview)
 {
     return await GenericPostAsync<ExecutedViewResponse>("views/preview.json", preview);
 }
Exemple #3
0
 public ExecutedViewResponse PreviewView(PreviewViewRequest preview)
 {
     return GenericPost<ExecutedViewResponse>("views/preview.json", preview);
 }