DarthFubuMVC/fubucore — pull request #35 by drusellers (2012-04-20 19:59:40+00:00)
Title: Enhancing the BindingContext to issue sub contexts

An enhancement to the BindingContext, that is needed for FubuFastPack EditEntityModelBinder. This pull request adds a 'GetSubContext(string name)' method that return a new context object, that is scoped with nested request data.

Discussions with JDM, also brought up the possible issue, that 'Problems' would get lost by spinning up a new context object. To that end I have added, a new ctor that allows the parent object to pass in ITS _problems. This ctor additional allows the problems to keep being collected in the parent context.

All tests are green.

In addition, it may now be possible to remove GetSubRequest from the context, as it is no longer used in FubuCore.