Skip to content

TempData & ViewBag Support #27

Open
@AlexArchive

Description

@AlexArchive

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions