public DefaultConsentServiceTests() { scopes = new List<string> { "read", "write" }; client = new Client {ClientId = "client", AllowRememberConsent = true, RequireConsent = true}; user = new ClaimsPrincipal(new ClaimsIdentity(new Claim[]{new Claim(Constants.ClaimTypes.Subject, "123")}, "password")); store = new InMemoryConsentStore(); subject = new DefaultConsentService(store); }
//InMemoryClientStore clientStore; //InMemoryScopeStore scopeStore; //DefaultClientPermissionsService subject; public DefaultClientPermissionsServiceTests() { consentStore = new InMemoryConsentStore(); //subject = new DefaultClientPermissionsService( // consentStore, // r); }
public AggregatePermissionsStoreTests() { store1 = new InMemoryConsentStore(); store2 = new InMemoryConsentStore(); subject = new AggregatePermissionsStore(store1, store2); }