public void UpdateDatabaseObject() { Controller.DatabaseManager databaseManager = new Controller.DatabaseManager(_generalInfo); List <string> items = databaseManager.SetObjects(DTO.Enum.ObjectType.All, "vwa_EZoneAirwayBills"); Assert.NotNull(items); }
public void UpdateDatabaseViews() { Controller.DatabaseManager databaseManager = new Controller.DatabaseManager(_generalInfo); List <string> items = databaseManager.SetObjects(DTO.Enum.ObjectType.Views); Assert.NotNull(items); }
private static void ExecuteTaskTwo(GeneralInfo generalInfo, string[] args) { Controller.DatabaseManager databaseManager = new Controller.DatabaseManager(generalInfo); DTO.Enum.ObjectType objectType = DTO.Enum.ObjectType.All; string objectName = string.Empty; string schemaName = string.Empty; if (args.Length > 3) { objectName = args[3]; } if (args.Length > 4) { schemaName = args[4]; } if (args.Length > 5) { objectType = (DTO.Enum.ObjectType)Enum.Parse(typeof(DTO.Enum.ObjectType), args[5]); } List <string> result = databaseManager.SetObjects(objectType, objectName, schemaName); if (generalInfo.GenerateReport) { databaseManager.SaveReport(result); } }