public PerformanceTesting() { var config = new ConfigurationBuilder().AddJsonFile("appSettings.json").Build(); Messenger = new PubSubMessenger(new PubSubJsonAuthConfig() { JsonAuthFile = config["CredentialPath"], ProjectId = config["GcpProjectId"], }); Manager = Messenger.EntityManager as PubSubManager; Manager.CreateEntity(new ReceiverConfig { EntityName = TestTopicName }).GetAwaiter().GetResult(); // Ensure there are messages to receive. var sentences = Lorem.GetSentences(2000); Messenger.SendBatch(TestTopicName, sentences).GetAwaiter().GetResult(); }