Пример #1
0
        public void CreatePowerPivotConnectionWithFileName()
        {
            var mockEventAgg = new Mock <IEventAggregator>().Object;
            var ppvt         = new ProxyPowerPivot(mockEventAgg, 9000);
            var cnn          = ppvt.GetPowerPivotConnection("Application Name=Dax Studio Test", "Workstation ID=\"c:\\test folder\\blah's folder\\test's crazy ;=-` file.xlsx\";");

            Assert.AreEqual("Data Source=http://localhost:9000/xmla;Application Name=Dax Studio Test;Workstation ID=\"c:\\test folder\\blah's folder\\test's crazy ;=-` file.xlsx\";Show Hidden Cubes=true", cnn.ConnectionString);
        }
Пример #2
0
        public void CreatePowerPivotConnection()
        {
            var mockEventAgg = new Mock <IEventAggregator>().Object;
            var ppvt         = new ProxyPowerPivot(mockEventAgg, 9000);
            var cnn          = ppvt.GetPowerPivotConnection("Application Name=Dax Studio Test", "");

            Assert.AreEqual("Data Source=http://localhost:9000/xmla;Application Name=Dax Studio Test;Show Hidden Cubes=true", cnn.ConnectionString);
        }