public void GrantConsentAsync_should_throw_if_no_subject()
        {
            Func <Task> act = () => _subject.GrantConsentAsync(new AuthorizationRequest(), new ConsentResponse(), null);

            act.ShouldThrow <ArgumentNullException>()
            .And.Message.Should().Contain("subject");
        }
        public void GrantConsentAsync_should_throw_if_granted_and_no_subject()
        {
            Func <Task> act = () => _subject.GrantConsentAsync(
                new AuthorizationRequest(),
                new ConsentResponse()
            {
                ScopesValuesConsented = new[] { "openid" }
            },
                null);

            act.Should().Throw <ArgumentNullException>()
            .And.Message.Should().Contain("subject");
        }