public async Task AuthorizationCodesAreDeleted()
        {
            Assert.NotEmpty(await _acStore.GetAllAsync(Subject));
            _ps.Invoke();

            Assert.Equal(
                new string[] { },
                _acStore.GetAllAsync(Subject).Result.Select(TestData.ToTestableString));
        }
        public async Task GetAllShouldReturnAllCodes()
        {
            await _setup;
            var   result = await _authorizationStore.GetAllAsync(SubjectA);

            var actual = result.OfType <AuthorizationCode>()
                         .OrderBy(x => x.Nonce)
                         .Select(x => JObject.FromObject(x, _serializer).ToString()).ToArray();
            var expected = _subjectACodes.OrderBy(x => x.Nonce)
                           .Select(x => JObject.FromObject(x, _serializer).ToString()).ToArray();

            Assert.Equal(
                expected,
                actual);
        }