Skip to content
This repository was archived by the owner on Oct 17, 2018. It is now read-only.
This repository was archived by the owner on Oct 17, 2018. It is now read-only.

[Question] Why is Protect(string) and Unprotect(string) not part of IDataProtector? #202

@Legogris

Description

@Legogris

When writing unit tests, it helps a lot being able to mock the results of these functions depending on the input.

Right now it is a big hassle doing this since we have to mock the byte-array versions and then mimic the internal implementations of the extension methods in DataProtectionCommonExtensions. I can't even get it to work properly for a particular use case. It would be very beneficial to have the directly on the interface.

Metadata

Metadata

Assignees

No one assigned

    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