2009-06-27 Marek Habersack <mhabersack@novell.com>
authorMarek Habersack <grendel@twistedcode.net>
Fri, 26 Jun 2009 22:13:39 +0000 (22:13 -0000)
committerMarek Habersack <grendel@twistedcode.net>
Fri, 26 Jun 2009 22:13:39 +0000 (22:13 -0000)
commit3192ec7fa476f3a89097d2ae27464e9ffae5e109
tree423ee8c021541702dc1b7d566fc9601719efbf2e
parenta5b5163351d29eef7d10819c2be636eddf2f39c2
2009-06-27  Marek Habersack  <mhabersack@novell.com>

     * MetaModel.cs: implemented DynamicDataFolderVirtualPath

     * DynamicDataRouteHandler.cs: implemented SetRequestMetaTable,
     GetCustomPageVirtualPath, GetScaffoldPageVirtualPath and
     guessed at implementation of CreateHandler.

    2009-06-27  Marek Habersack  <mhabersack@novell.com>

     * MetaModelTest.cs: added test for DynamicDataFolderVirtualPath

     * DynamicDataRouteHandlerTest.cs: implemented tests for
     CreateHandler (one of them isn't working atm),
     GetCustomVirtualPagePath, GetScaffoldVirtualPagePath,
     GetRequestMetaTable, SetRequestMetaTable

    2009-06-26  Marek Habersack  <mhabersack@novell.com>

     * DynamicDataRouteTest.cs: MyDataContext3 is safely registered in
     the fixture setup method.
     Enabled the GetTableFromRouteData3 and GetRouteData tests - the
     work fine now.
     Added test for the RouteHandler property.

     * DynamicDataRouteHandlerTest.cs: added tests for the constructor
     and the Model property.

    2009-06-26  Marek Habersack  <mhabersack@novell.com>

     * MetaModel.cs: RegisterContextCore preserves already registered
     tables.

     * DynamicDataRouteHandler.cs: GetRequestContext must not retrieve
     route data from the routes collection (if the matching route
     happened to be an instance of DynamicDataRoute it would initialize
     its RouteHandler's Model property, which is not correct, according
     to tests). Instead a new RouteData instance is created each time
     we don't find any cached context.

     * DynamicDataRoute.cs: the associated route handler is set its
     Model property when we initialize for the first time.
     GetRouteData checks whether route data returned by base class
     relates to a table which exists in the current context. If no such
     table exists, null is returned.

svn path=/trunk/mcs/; revision=137013
14 files changed:
mcs/class/System.Web.DynamicData/System.Web.DynamicData/ChangeLog
mcs/class/System.Web.DynamicData/System.Web.DynamicData/DynamicDataRoute.cs
mcs/class/System.Web.DynamicData/System.Web.DynamicData/DynamicDataRouteHandler.cs
mcs/class/System.Web.DynamicData/System.Web.DynamicData/MetaModel.cs
mcs/class/System.Web.DynamicData/System.Web.DynamicData_test.dll.sources
mcs/class/System.Web.DynamicData/Test/Common/MyDynamicDataRouteHandler.cs [new file with mode: 0644]
mcs/class/System.Web.DynamicData/Test/Common/MyHttpContextWrapper.cs [new file with mode: 0644]
mcs/class/System.Web.DynamicData/Test/Common/MyHttpRequestWrapper.cs [new file with mode: 0644]
mcs/class/System.Web.DynamicData/Test/Common/TestStubTypes.cs
mcs/class/System.Web.DynamicData/Test/Common/Utils.cs
mcs/class/System.Web.DynamicData/Test/System.Web.DynamicData/ChangeLog
mcs/class/System.Web.DynamicData/Test/System.Web.DynamicData/DynamicDataRouteHandlerTest.cs
mcs/class/System.Web.DynamicData/Test/System.Web.DynamicData/DynamicDataRouteTest.cs
mcs/class/System.Web.DynamicData/Test/System.Web.DynamicData/MetaModelTest.cs