public List <DatabaseTriggers> GetDatabaseTriggers( [PexAssumeUnderTest] DatabaseSchemaAccessLayer target, string database ) { List <DatabaseTriggers> result = target.GetDatabaseTriggers(database); return(result); // TODO: add assertions to method DatabaseSchemaAccessLayerTest.GetDatabaseTriggers(DatabaseSchemaAccessLayer, String) }
/// <summary> /// Gets the database triggers. /// </summary> private void GetDatabaseTriggers() { DatabaseSchemaAccessLayer databaseInfo = new DatabaseSchemaAccessLayer(this.ConnectionParams); List <DatabaseTriggers> indexFragmentation = databaseInfo.GetDatabaseTriggers(this.DatabaseName); int count = indexFragmentation.Count; if (indexFragmentation.Count > 0) { this.DataGridViewSchema.DataSource = indexFragmentation; int dataGridViewWidth = this.DataGridViewSchema.Width; this.DataGridViewSchema.Columns[0].DefaultCellStyle.Alignment = DataGridViewContentAlignment.TopLeft; this.DataGridViewSchema.Columns[1].DefaultCellStyle.Alignment = DataGridViewContentAlignment.TopLeft; this.DataGridViewSchema.Columns[2].DefaultCellStyle.Alignment = DataGridViewContentAlignment.TopLeft; this.DataGridViewSchema.Columns[3].DefaultCellStyle.Alignment = DataGridViewContentAlignment.TopLeft; this.DataGridViewSchema.Columns[4].DefaultCellStyle.Alignment = DataGridViewContentAlignment.TopRight; this.DataGridViewSchema.Columns[5].DefaultCellStyle.Alignment = DataGridViewContentAlignment.TopRight; this.DataGridViewSchema.Columns[6].DefaultCellStyle.Alignment = DataGridViewContentAlignment.TopRight; this.DataGridViewSchema.Columns[7].DefaultCellStyle.Alignment = DataGridViewContentAlignment.TopRight; this.DataGridViewSchema.Columns[8].DefaultCellStyle.Alignment = DataGridViewContentAlignment.TopRight; this.DataGridViewSchema.Columns[9].DefaultCellStyle.Alignment = DataGridViewContentAlignment.TopRight; } }