2009-06-12 Bill Holmes <billholmes54@gmail.com>
[mono.git] / mcs / class / System.Web.DynamicData / Test / Common / TestDataContainer.cs
1 using System;
2 using System.Collections;
3 using System.Collections.Generic;
4 using System.Text;
5 using System.Web.UI;
6
7 using MonoTests.DataSource;
8 using MonoTests.ModelProviders;
9
10 namespace MonoTests.Common
11 {
12         class TestDataContainer <DataType>: DynamicDataContainer<DataType> where DataType: ITestDataContext
13         {
14                 public TestDataContainer ()
15                 : this (default (DataType))
16                 { }
17
18                 public TestDataContainer (DataType data)
19                 : base (data)
20                 { }
21
22                 public override int Update (IDictionary keys, IDictionary values, IDictionary oldValues)
23                 {
24                         throw new NotImplementedException ();
25                 }
26
27                 public override int Insert (IDictionary values)
28                 {
29                         throw new NotImplementedException ();
30                 }
31
32                 public override int Delete (IDictionary keys, IDictionary oldValues)
33                 {
34                         throw new NotImplementedException ();
35                 }
36
37                 public override IEnumerable Select (DataSourceSelectArguments args, string where, global::System.Web.UI.WebControls.ParameterCollection whereParams)
38                 {
39                         throw new NotImplementedException ();
40                 }
41
42                 public override List<DynamicDataTable> GetTables ()
43                 {
44                         DataType data = Data;
45                         if (data == null)
46                                 data = Activator.CreateInstance<DataType> ();
47                         return data.GetTables ();
48                 }
49         }
50 }