public List <DatabaseChangesLast90Days> GetDatabaseChangesLast90Days( [PexAssumeUnderTest] DatabaseSchemaAccessLayer target, string database ) { List <DatabaseChangesLast90Days> result = target.GetDatabaseChangesLast90Days(database); return(result); // TODO: add assertions to method DatabaseSchemaAccessLayerTest.GetDatabaseChangesLast90Days(DatabaseSchemaAccessLayer, String) }
/// <summary> /// Gets the database changes last90 days. /// </summary> private void GetDatabaseChangesLast90Days() { DatabaseSchemaAccessLayer databaseInfo = new DatabaseSchemaAccessLayer(this.ConnectionParams); List <DatabaseChangesLast90Days> changesLast90Days = databaseInfo.GetDatabaseChangesLast90Days(this.DatabaseName); int count = changesLast90Days.Count; if (changesLast90Days.Count > 0) { this.DataGridViewSchema.DataSource = changesLast90Days; 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.TopRight; this.DataGridViewSchema.Columns[4].DefaultCellStyle.Alignment = DataGridViewContentAlignment.TopRight; } }