Пример #1
0
        public async Task CanGetOneAsync()
        {
            _collection.Add(new IdentityResource("api", new List <string>
            {
                "role"
            }));

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

            Assert.NotNull(result);
        }