TestDataContainer.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. using System;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. using System.Text;
  5. using System.Web.UI;
  6. using MonoTests.DataSource;
  7. using MonoTests.ModelProviders;
  8. namespace MonoTests.Common
  9. {
  10. class TestDataContainer <DataType>: DynamicDataContainer<DataType>
  11. {
  12. public TestDataContainer ()
  13. : this (default (DataType))
  14. { }
  15. public TestDataContainer (DataType data)
  16. : base (data)
  17. { }
  18. public override int Update (IDictionary keys, IDictionary values, IDictionary oldValues)
  19. {
  20. throw new NotImplementedException ();
  21. }
  22. public override int Insert (IDictionary values)
  23. {
  24. throw new NotImplementedException ();
  25. }
  26. public override int Delete (IDictionary keys, IDictionary oldValues)
  27. {
  28. throw new NotImplementedException ();
  29. }
  30. public override IEnumerable Select (DataSourceSelectArguments args, string where, global::System.Web.UI.WebControls.ParameterCollection whereParams)
  31. {
  32. throw new NotImplementedException ();
  33. }
  34. public override List<DynamicDataTable> GetTables ()
  35. {
  36. var ret = new List<DynamicDataTable> ();
  37. ret.Add (new TestDataTable <DataType> ());
  38. return ret;
  39. }
  40. }
  41. }