예제 #1
0
        public async Task CanGetAsync()
        {
            _collection.Add(new IdentityResource("api", new List <string>
            {
                "role"
            }));

            var result = await _repository.GetAsync <IdentityResource>(c => c.Name == "api");

            Assert.Single(result);
        }