using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Text; using System.Web.DynamicData; using System.Web.DynamicData.ModelProviders; using System.Web.UI; using System.Web.UI.WebControls; using MonoTests.System.Web.DynamicData; using MonoTests.ModelProviders; using MonoTests.DataSource; namespace MonoTests.Common { public class TestDataContext4 : ITestDataContext { List bazValidationAttributes; public List BazValidationAttributes { get { if (bazValidationAttributes == null) bazValidationAttributes = new List (); return bazValidationAttributes; } } #region ITestDataContext Members public IList GetTableData (string tableName, DataSourceSelectArguments args, string where, ParameterCollection whereParams) { if (String.Compare (tableName, "BazValidationAttributesTable", StringComparison.OrdinalIgnoreCase) == 0) return BazValidationAttributes; return null; } public List GetTables () { return new List { new TestDataTable() }; } #endregion } }