public DeviceCodeGrant CreateDeviceCodeGrant(TestOAuth2ServerTokenGenerator generator, string[] scopes)
        {
            string deviceCode = generator.CreateDeviceCode();
            string userCode   = generator.CreateUserCode();

            var grant = new DeviceCodeGrant(userCode, deviceCode, scopes);

            DeviceGrants.Add(grant);

            return(grant);
        }