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); }
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); }