Example #1
0
        public async Task Test_GetScopesAsync()
        {
            var dao = new IdentityServer3CassandraDao();
            await dao.EstablishConnectionAsync();

            var insertResult = await CassandraTestHelper.InsertTestData_Scopes(1);

            var queryNames = from item in insertResult
                             select item.Record.Name;
            var nameList = queryNames.ToList();
            var result   = await dao.FindScopesAsync(true);

            Assert.IsTrue(result.Any());
        }