public void RetrieveSchemaId()
        {
            string groupName = TestEnvironment.SchemaRegistryGroup;

            #region Snippet:SchemaRegistryRetrieveSchemaId
            string            name = "employeeSample";
            SerializationType type = SerializationType.Avro;
            // Example schema's content
            string content = @"
            {
               ""type"" : ""record"",
                ""namespace"" : ""TestSchema"",
                ""name"" : ""Employee"",
                ""fields"" : [
                { ""name"" : ""Name"" , ""type"" : ""string"" },
                { ""name"" : ""Age"", ""type"" : ""int"" }
                ]
            }";

            SchemaProperties schemaProperties = client.GetSchemaProperties(groupName, name, content, type);
            string           schemaId         = schemaProperties.Id;
            #endregion

            Assert.AreEqual(_schemaProperties.Id, schemaId);
        }
        private string GetSchemaId(Schema schema, CancellationToken cancellationToken)
        {
            var schemaProperties = _options.AutoRegisterSchemas
                ? _client.RegisterSchema(_groupName, schema.Fullname, schema.ToString(), SerializationType.Avro, cancellationToken)
                : _client.GetSchemaProperties(_groupName, schema.Fullname, schema.ToString(), SerializationType.Avro, cancellationToken);

            return(schemaProperties.Id);
        }