public async void PullAvroBinaryMessagesAsync()
    {
        string randomName     = _pubsubFixture.RandomName();
        string topicId        = $"testTopicForAvroBinaryMessageAck{randomName}";
        string subscriptionId = $"testSubscriptionForAvroBinaryMessageAck{randomName}";
        string schemaId       = $"testSchemaForAvroMessageBinaryAck{randomName}";

        var schema = _pubsubFixture.CreateAvroSchema(schemaId);

        _pubsubFixture.CreateTopicWithSchema(topicId, schema.Name.ToString(), Encoding.Binary);
        _pubsubFixture.CreateSubscription(topicId, subscriptionId);

        await _publishAvroMessagesAsyncSample.PublishAvroMessagesAsync(_pubsubFixture.ProjectId, topicId, new AvroUtilities.State[] { new AvroUtilities.State {
                                                                                                                                          name = "New York", post_abbr = "NY"
                                                                                                                                      } });

        // Pull and acknowledge the messages
        var result = await _pullAvroMessagesAsyncSample.PullAvroMessagesAsync(_pubsubFixture.ProjectId, subscriptionId, true);

        Assert.Equal(1, result);

        //Pull the Message to confirm it's gone after it's acknowledged
        result = await _pullAvroMessagesAsyncSample.PullAvroMessagesAsync(_pubsubFixture.ProjectId, subscriptionId, true);

        Assert.True(result == 0);
    }
    public async void PublishBinaryMessages()
    {
        string randomName     = _pubsubFixture.RandomName();
        string topicId        = $"testTopicAvroBinaryMessageCreation{randomName}";
        string subscriptionId = $"testSubscriptionAvroBinaryMessageCreation{randomName}";
        string schemaId       = $"testSchemaAvroBinaryMessageCreation{randomName}";

        var schema = _pubsubFixture.CreateAvroSchema(schemaId);

        _pubsubFixture.CreateTopicWithSchema(topicId, schema.Name.ToString(), Encoding.Binary);
        _pubsubFixture.CreateSubscription(topicId, subscriptionId);

        List <AvroUtilities.State> messageTexts = new List <AvroUtilities.State> {
            new AvroUtilities.State {
                name = "New York", post_abbr = "NY"
            }, new AvroUtilities.State {
                name = "Pennsylvania", post_abbr = "PA"
            }
        };

        var output = await _publishAvroMessagesAsyncSample.PublishAvroMessagesAsync(_pubsubFixture.ProjectId, topicId, messageTexts);

        Assert.Equal(messageTexts.Count, output);

        // Pull the Message to confirm it is valid
        await _pubsubFixture.Pull.Eventually(async() =>
        {
            var result = await _pullMessagesAsyncSample.PullMessagesAsync(_pubsubFixture.ProjectId, subscriptionId, false);
            Assert.True(result > 0);
        });
    }