Exemplo n.º 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);
        }
Exemplo n.º 2
0
 public ExecutedViewResponse PreviewView(PreviewViewRequest preview)
 {
     return GenericPost<ExecutedViewResponse>("views/preview.json", preview);
 }