Esempio n. 1
0
        public async Task CreateRoleTable()
        {
            using (RoleStore <IdentityRole> store = roleFixture.CreateRoleStore())
            {
                var r = await store.CreateTableIfNotExistsAsync();

                Assert.True(await store.Context.RoleTable.ExistsAsync());
            }
            ServiceCollection services = new ServiceCollection();

            // Adding coverage for CreateAzureTablesIfNotExists();
            services.AddIdentityCore <IdentityUser>()
            .AddAzureTableStores <IdentityCloudContext>(new Func <IdentityConfiguration>(() =>
            {
                return(roleFixture.GetConfig());
            }), roleFixture.GetKeyHelper())
            .CreateAzureTablesIfNotExists <IdentityCloudContext>();
        }