public override void SetUp() { base.SetUp(); DatabaseSettingsNode databaseSettingsNode = new DatabaseSettingsNode(DatabaseSettingsBuilder.Create(Host)); IUIHierarchy hierarchy = CreateHierarchyAndAddToHierarchyService(databaseSettingsNode, CreateDefaultConfiguration()); packageNode = (OraclePackageNode)hierarchy.FindNodeByType(typeof(OraclePackageNode)); }
public override void SetUp() { base.SetUp(); DatabaseSettings databaseSettings = DatabaseSettingsBuilder.Create(Host); databaseSettingsNode = new DatabaseSettingsNode(databaseSettings); GeneratedApplicationNode.Nodes.Add(databaseSettingsNode); databaseSettingsNode.ResolveNodeReferences(); }
public override void SetUp() { base.SetUp(); DatabaseSettings databaseSettings = DatabaseSettingsBuilder.Create(Host); DatabaseSettingsNode databaseSettingsNode = new DatabaseSettingsNode(databaseSettings); IUIHierarchy hierarchy = CreateHierarchyAndAddToHierarchyService(databaseSettingsNode, CreateDefaultConfiguration()); connectionStringCollectionNode = (ConnectionStringCollectionNode)hierarchy.FindNodeByType(typeof(ConnectionStringCollectionNode)); }
public override void SetUp() { base.SetUp(); DatabaseSettings databaseSettings = DatabaseSettingsBuilder.Create(Host); DatabaseSettingsNode databaseSettingsNode = new DatabaseSettingsNode(databaseSettings); IUIHierarchy hierarchy = CreateHierarchyAndAddToHierarchyService(databaseSettingsNode, CreateDefaultConfiguration()); databaseSettingsNode.ResolveNodeReferences(); instancesNode = (InstanceCollectionNode)hierarchy.FindNodeByType(typeof(InstanceCollectionNode)); }
public void CreateFromRuntimeTest() { DatabaseSettings databaseSettings = DatabaseSettingsBuilder.Create(Host); DatabaseSettingsNode databaseSettingsNode = new DatabaseSettingsNode(databaseSettings); IUIHierarchy hierarchy = CreateHierarchyAndAddToHierarchyService(databaseSettingsNode, CreateDefaultConfiguration()); ConnectionStringCollectionNode node = (ConnectionStringCollectionNode)hierarchy.FindNodeByType(typeof(ConnectionStringCollectionNode)); ValidateNodeCommand cmd = new ValidateNodeCommand(Host); cmd.Execute(node); Assert.AreEqual(0, ValidationErrorsCount); }
public override void SetUp() { base.SetUp(); DatabaseSettings databaseSettings = DatabaseSettingsBuilder.Create(Host); DatabaseSettingsNode databaseSettingsNode = new DatabaseSettingsNode(databaseSettings); GeneratedApplicationNode.Nodes.Add(databaseSettingsNode); databaseSettingsNode.ResolveNodeReferences(); InstanceCollectionNode collectionNode = GeneratedHierarchy.FindNodeByType(typeof(InstanceCollectionNode)) as InstanceCollectionNode; instanceNode = GeneratedHierarchy.FindNodeByName(collectionNode, name) as InstanceNode; }
public void CreateFromRuntimeTest() { DatabaseSettings databaseSettings = DatabaseSettingsBuilder.Create(Host); DatabaseTypeCollectionNode node = new DatabaseTypeCollectionNode(databaseSettings.DatabaseTypes); CreateHierarchyAndAddToHierarchyService(node, CreateDefaultConfiguration()); Assert.AreEqual(databaseSettings.DatabaseTypes.Count, node.Nodes.Count); ValidateNodeCommand cmd = new ValidateNodeCommand(Host); cmd.Execute(node); Assert.AreEqual(0, ValidationErrorsCount); }
public void CreateFromRuntimeTest() { DatabaseSettings databaseSettings = DatabaseSettingsBuilder.Create(Host); OraclePackageData data = ((OracleConnectionStringData)databaseSettings.ConnectionStrings["OracleConnection"]).OraclePackages["ENTLIB"]; OraclePackageNode node = new OraclePackageNode(data); CreateHierarchyAndAddToHierarchyService(node, CreateDefaultConfiguration()); Assert.AreEqual(data.Name, node.Name); Assert.AreEqual(data.Prefix, node.Prefix); ValidateNodeCommand cmd = new ValidateNodeCommand(Host); cmd.Execute(node); }
public void CreateFromRuntimeTest() { DatabaseSettings databaseSettings = DatabaseSettingsBuilder.Create(Host); OracleConnectionStringData data = databaseSettings.ConnectionStrings["OracleConnection"] as OracleConnectionStringData; OracleConnectionStringNode node = new OracleConnectionStringNode(data); CreateHierarchyAndAddToHierarchyService(node, CreateDefaultConfiguration()); Assert.AreEqual(data.Name, node.Name); Assert.AreEqual(4, node.Nodes.Count); ValidateNodeCommand cmd = new ValidateNodeCommand(Host); cmd.Execute(node); Assert.AreEqual(0, ValidationErrorsCount); }
public void CreateFromRuntimeTest() { DatabaseSettings databaseSettings = DatabaseSettingsBuilder.Create(Host); ParameterData data = databaseSettings.ConnectionStrings["Northwind"].Parameters["server"]; ParameterNode node = new ParameterNode(data); CreateHierarchyAndAddToHierarchyService(node, CreateDefaultConfiguration()); Assert.AreEqual(data.Name, node.Name); Assert.AreEqual(data.Value, node.Value); ValidateNodeCommand cmd = new ValidateNodeCommand(Host); cmd.Execute(node); Assert.AreEqual(0, ValidationErrorsCount); }
public override void SetUp() { base.SetUp(); DatabaseSettings databaseSettings = DatabaseSettingsBuilder.Create(Host); connectionStringData = databaseSettings.ConnectionStrings["OracleConnection"] as OracleConnectionStringData; Assert.IsNotNull(connectionStringData); DatabaseSettingsNode databaseSettingsNode = new DatabaseSettingsNode(databaseSettings); IUIHierarchy hierarchy = CreateHierarchyAndAddToHierarchyService(databaseSettingsNode, CreateDefaultConfiguration()); ConfigurationNode[] nodes = hierarchy.FindNodesByType(typeof(OracleConnectionStringNode)); foreach (OracleConnectionStringNode node in nodes) { connectionStringNode = node; } }
public override void SetUp() { base.SetUp(); DatabaseSettingsNode databaseSettingsNode = new DatabaseSettingsNode(DatabaseSettingsBuilder.Create(Host)); IUIHierarchy hierarchy = CreateHierarchyAndAddToHierarchyService(databaseSettingsNode, CreateDefaultConfiguration()); ConfigurationNode[] nodes = hierarchy.FindNodesByType(typeof(ParameterNode)); foreach (ParameterNode node in nodes) { if (node.Name == "server") { parameterNode = node; break; } } }
public void CreateFromRuntimeTest() { DatabaseSettings databaseSettings = DatabaseSettingsBuilder.Create(Host); DatabaseSettingsNode databaseSettingsNode = new DatabaseSettingsNode(databaseSettings); IUIHierarchy hierarchy = CreateHierarchyAndAddToHierarchyService(databaseSettingsNode, CreateDefaultConfiguration()); databaseSettingsNode.ResolveNodeReferences(); InstanceData data = databaseSettings.Instances[name]; InstanceCollectionNode collectionNode = hierarchy.FindNodeByType(typeof(InstanceCollectionNode)) as InstanceCollectionNode; InstanceNode node = hierarchy.FindNodeByName(collectionNode, name) as InstanceNode; Assert.AreEqual(data.Name, node.Name); Assert.AreEqual(data.DatabaseTypeName, node.DatabaseTypeName); ValidateNodeCommand cmd = new ValidateNodeCommand(Host); cmd.Execute(node); Assert.AreEqual(0, ValidationErrorsCount); }