public void LoadAllAsync_OnlyOneStoreHasConsent_ReturnsSameConsent()
        {
            store2.UpdateAsync(new Consent {
                ClientId = "client", Subject = "sub", Scopes = new string[] { "foo", "bar" }
            });

            var result = subject.LoadAllAsync("sub").Result;

            Assert.AreEqual(1, result.Count());
            var consent = result.First();

            Assert.AreEqual("sub", consent.Subject);
            Assert.AreEqual("client", consent.ClientId);
            CollectionAssert.AreEquivalent(new string[] { "foo", "bar" }, consent.Scopes.ToArray());
        }
        public void LoadAllAsync_OnlyOneStoreHasConsent_ReturnsSameConsent()
        {
            store2.UpdateAsync(new Consent {
                ClientId = "client", Subject = "sub", Scopes = new[] { "foo", "bar" }
            });

            var result = subject.LoadAllAsync("sub").Result;

            result.Count().Should().Be(1);
            var consent = result.First();

            consent.Subject.Should().Be("sub");
            consent.ClientId.Should().Be("client");
            consent.Scopes.ShouldAllBeEquivalentTo(new [] { "foo", "bar" });
        }