public void Dispose() { var deleteTopicSampleObject = new DeleteTopicSample(); var deleteSubscriptionSampleObject = new DeleteSubscriptionSample(); var deleteSchemaSampleObject = new DeleteSchemaSample(); foreach (string subscriptionId in TempSubscriptionIds) { try { deleteSubscriptionSampleObject.DeleteSubscription(ProjectId, subscriptionId); } catch (RpcException) { // Do nothing, we are deleting on a best effort basis. } } foreach (string topicId in TempTopicIds) { try { deleteTopicSampleObject.DeleteTopic(ProjectId, topicId); } catch (RpcException) { // Do nothing, we are deleting on a best effort basis. } } foreach (string schemaId in TempSchemaIds) { try { deleteSchemaSampleObject.DeleteSchema(ProjectId, schemaId); } catch (RpcException) { // Do nothing, we are deleting on a best effort basis. } } }
public DeleteSchemaTest(PubsubFixture pubsubFixture) { _pubsubFixture = pubsubFixture; _deleteSchemaSample = new DeleteSchemaSample(); }