Hi,
I am testing a service where one of the model is decorated with the following attributes, I’m having trouble mocking the permission to allow the test to pass.
[ValidateHasClaim(Permissions.Perm, Permissions.CanCreatePaymentPlan)]
[RequiresAnyRole( Roles.BackofficeStaff)]
I’m using a projected configured with Asp.net Identity and for the unit tests running sqlite in memory do I have to recreate all the asp.net identity tables or is there a better way?