Earlier today I had to write a unit test against the TempData property and wondered if there was any support in this library for this - there is not.
The problem that I have is that TempData is basically weakly typed and casting is not elegant_. I love the way this library enables strong typing when possible and thought It *might_ be awesome if there was some support for this.
Because there would already be support for TempData I guess it would make sense to have a ViewBag counterpart too.
I am not entirely convinced as to how valuable this feature would be nor am I confident about what the syntax might look like, but I thought I would throw it out there for discussion anyway.
*It is not so much that I find casting inelegant but rather - I use this library for all my controller tests and I find that altering between this library and standard tests does not look fluent and consequently, neat.
Earlier today I had to write a unit test against the
TempDataproperty and wondered if there was any support in this library for this - there is not.The problem that I have is that
TempDatais basically weakly typed and casting is not elegant_. I love the way this library enables strong typing when possible and thought It *might_ be awesome if there was some support for this.Because there would already be support for
TempDataI guess it would make sense to have aViewBagcounterpart too.I am not entirely convinced as to how valuable this feature would be nor am I confident about what the syntax might look like, but I thought I would throw it out there for discussion anyway.
*It is not so much that I find casting inelegant but rather - I use this library for all my controller tests and I find that altering between this library and standard tests does not look fluent and consequently, neat.