Exemplo n.º 1
0
        public async Task UseAfterDelete()
        {
            var app = FirebaseApp.Create(new AppOptions()
            {
                Credential = MockCredential
            });
            FirebaseAuth auth = FirebaseAuth.DefaultInstance;

            app.Delete();
            await Assert.ThrowsAsync <InvalidOperationException>(
                async() => await auth.CreateCustomTokenAsync("user"));

            await Assert.ThrowsAsync <InvalidOperationException>(
                async() => await auth.VerifyIdTokenAsync("user"));

            await Assert.ThrowsAsync <InvalidOperationException>(
                async() => await auth.SetCustomUserClaimsAsync("user", null));

            await Assert.ThrowsAsync <InvalidOperationException>(
                async() => await auth.GetOidcProviderConfigAsync("oidc.provider"));
        }