I've a service called Claims-Service which has following signature:
IClaimsService { EnsureClaim(claimType, userId) }
It queries database to see if the claim is present in any of my roles or not.
Based on my current requirements, I don't have a scenario which requires a user to have more than one claim to do something, but I think I'm going to need it in near future. (I'm in the very beginning of the project)
Is it ok to add following method to my service or not?
EnsureClaims( claimTypes, userId )
So I can pass array of claim types to it.
What pros and cons do you see if I develop the second method in my service?
Note that EnsureClaim and EnsureClaims need their own queries and there won't be any type of code re use. So I'm talking about developing new codes, automated tests & code review. And I'm not talking about huge amount of new codes.