2 using System.Collections;
3 using System.Collections.Generic;
6 using System.Web.UI.WebControls;
8 using MonoTests.DataSource;
9 using MonoTests.ModelProviders;
11 namespace MonoTests.Common
13 public class TestDataContainer <TContext>: DynamicDataContainer<TContext> where TContext: ITestDataContext
15 public TestDataContainer ()
18 public TestDataContainer (string tableName)
22 public override int Update (IDictionary keys, IDictionary values, IDictionary oldValues)
24 throw new NotImplementedException ();
27 public override int Insert (IDictionary values)
29 throw new NotImplementedException ();
32 public override int Delete (IDictionary keys, IDictionary oldValues)
34 throw new NotImplementedException ();
37 public override IEnumerable Select (DataSourceSelectArguments args, string where, ParameterCollection whereParams)
39 TContext contextInstance = ContainedTypeInstance;
40 return ContainedTypeInstance.GetTableData (TableName, args, where, whereParams);
43 public override List<DynamicDataTable> GetTables ()
45 var data = Activator.CreateInstance<TContext> ();
46 return data.GetTables ();