Identity icon indicating copy to clipboard operation
Identity copied to clipboard

Microsoft.AspNet.Identity.Test as a nuget package

Open SharePointRadi opened this issue 10 years ago • 4 comments

Do you have plans to release the Microsoft.AspNet.Identity.Test project as a nuget package? Currently, if we are building a custom user store and want to reuse the UserManagerTestBase class (from the Shared folder), we have to clone, build, reference, etc.

It would be useful if it is reusable.

SharePointRadi avatar Dec 31 '15 10:12 SharePointRadi

Seems reasonable to consider in the future...backlog @divega @rustd ?

HaoK avatar Jan 13 '16 00:01 HaoK

Yes. We did this with the EF tests for provider writers and has been working well.

divega avatar Jan 15 '16 07:01 divega

Further to this discussion, UserManager.cs has internal methods that are referenced from UserManagerTestBase.cs.

This means that we (provider writers?) could not really reuse UserManagerTestBase because it refers those internal methods. I had a similiar need and had to use reflection to refer to those internal methods.

https://github.com/OneBitSoftware/Microsoft.AspNet.Identity.EntityFramework6/blob/master/test/Microsoft.AspNet.Identity.EntityFramework6.Test/TestingUserManager.cs

SharePointRadi avatar Jan 16 '16 13:01 SharePointRadi

5e4e9ccdf164b622872c397c27b75d2bc8a329da

HaoK avatar Dec 12 '16 21:12 HaoK