public void CtorWithValidConfigKeys_DoesNotThrow()
    {
        Action createSut = () => _ = new GraphServiceClientWrapper(Options.Create(new AzureAdB2CSettings {
            AzureAdB2C = new AzureAdB2C()
        }));

        createSut.Should().Throw <ArgumentException>();
    }
    public void WhenAccessingUsers_ShoulForwardToGraphClient()
    {
        var client = new GraphServiceClientWrapper(Options.Create(new AzureAdB2CSettings {
            AzureAdB2C = new AzureAdB2C()
            {
                Domain       = "foo",
                ClientId     = "123",
                ClientSecret = "321"
            }
        }));

        client.Users.Should().NotBeNull();
    }
    public void CtorWithValidConfig_DoesNotThrow()
    {
        Action createSut = () => _ = new GraphServiceClientWrapper(Options.Create(new AzureAdB2CSettings {
            AzureAdB2C = new AzureAdB2C()
            {
                Domain       = "foo",
                ClientId     = "123",
                ClientSecret = "321"
            }
        }));

        createSut.Should().NotThrow();
    }
    public void CtorWithMissingConfigSection_DoesThrow()
    {
        Action createSut = () => _ = new GraphServiceClientWrapper(Options.Create(new AzureAdB2CSettings()));

        createSut.Should().Throw <ArgumentException>();
    }