[Question] Why is Protect(string) and Unprotect(string) not part of IDataProtector?
Legogris opened this issue · 2 comments
Legogris commented
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.
blowdart commented
What are you unit testing here? Your own data protection implementation?
aspnet-hello commented
This issue was moved to dotnet/aspnetcore#2518