Example #1
0
 public void CreateOlapWithSpecification()
 {
     /*
     var order = new Dictionary<string, bool>();
     order.Add("bar", true);
     var OC = rProxy.OlapCube<Test.FooCube, Test.FooCube.findByBar>(new Test.FooCube.findByBar { query = "fail123" }, "test.docx", new[] { "bar", "num" }, null, order);
     var res = OC.Result;
     Assert.IsTrue(res != null);
     */
     var cube = new Test.FooCube();
     var pdf = cube.CreatePdf(new[] { "bar" }, new[] { "count", "total", "average" });
     var fs = new FileStream("imba.docx", FileMode.Create);
     pdf.CopyTo(fs);
     fs.Close();
     var fi = new FileInfo("imba.docx");
     Assert.IsTrue(fi.Length > 0);
 }
Example #2
0
        public void CreateOlapWithSpecification()
        {
            /*
             * var order = new Dictionary<string, bool>();
             * order.Add("bar", true);
             * var OC = rProxy.OlapCube<Test.FooCube, Test.FooCube.findByBar>(new Test.FooCube.findByBar { query = "fail123" }, "test.docx", new[] { "bar", "num" }, null, order);
             * var res = OC.Result;
             * Assert.IsTrue(res != null);
             */
            var cube = new Test.FooCube();
            var pdf  = cube.CreatePdf(new[] { "bar" }, new[] { "count", "total", "average" });
            var fs   = new FileStream("imba.docx", FileMode.Create);

            pdf.CopyTo(fs);
            fs.Close();
            var fi = new FileInfo("imba.docx");

            Assert.IsTrue(fi.Length > 0);
        }