public void AddObjectToSchema()
        {
            var schema = _schemaRegistryService.AddSchema(
                _fixture.Create <string>(),
                _fixture.Create <GeneralObject>().ToJSONString(),
                SchemaType.Types.Type.DocumentStorage).Result;

            var schemaObjectsBefore = _queryService.GetAllObjectsFromSchema(schema.Id_).ExecuteWithRetryPolicy().Result;

            Assert.Equal(System.Net.HttpStatusCode.OK, schemaObjectsBefore.StatusCode);
            Assert.Equal("{}", schemaObjectsBefore.Content);
            var objectId = Guid.NewGuid().ToString();

            _kafkaProducer.Produce(new InsertObject()
            {
                schemaId = schema.Id_,
                objectId = objectId,
                data     = _fixture.Create <GeneralObject>(),
            });

            var schemaObjectsAfter = _queryService.GetAllObjectsFromSchema(schema.Id_).ExecuteWithRetryPolicy(m => m.Content.Equals("{}")).Result;

            Assert.Equal(System.Net.HttpStatusCode.OK, schemaObjectsAfter.StatusCode);
            Assert.Contains(objectId, schemaObjectsAfter.Content);
        }
        public void GetSchema_WrongSchemaId(string valueToTest)
        {
            var results = _queryService.GetAllObjectsFromSchema(valueToTest).ExecuteWithRetryPolicy().Result;

            Assert.Equal(System.Net.HttpStatusCode.BadRequest, results.StatusCode);
            Assert.Contains("Invalid request header", results.Content);
        }