Skip to content

Make ControllerBase.User virtual for unit testability. #4893

Closed
@mkArtakMSFT

Description

@mkArtakMSFT

This issue is to track a repo wide impacting changes:

Remove the compatibility switches

  • Remove compat switch for Enum DataAnnotation localization. In Update package branding to 3.0.0-preview4 #7748 we decided to fix the fact that Enum localization didn't use DataAnnotationLocalizerProvider behind a compat switch because it was a breaking change. For 3.0.0 we should remove that compat switch and only support the new behavior (usage of DataAnnotationLocalizerProvider).

Remove all the obsolete methods

Unit testing cleanup

  • Make ControllerBase.User virtual for unit testability.

Metadata

Metadata

Assignees

Labels

✔️ Resolution: Won't FixResolved because we decided not to change the behavior reported in this issue.area-mvcIncludes: MVC, Actions and Controllers, Localization, CORS, most templatesbreaking-changeThis issue / pr will introduce a breaking change, when resolved / merged.enhancementThis issue represents an ask for new feature or an enhancement to an existing one

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions