示例#1
0
    public Topic CreateTopic(string topicId)
    {
        var createTopicSampleObject = new CreateTopicSample();
        var topic = createTopicSampleObject.CreateTopic(ProjectId, topicId);

        TempTopicIds.Add(topicId);
        return(topic);
    }
    public void CreateTopic()
    {
        string topicId           = "testTopicForTopicCreation" + _pubsubFixture.RandomName();
        var    newlyCreatedTopic = _createTopicSample.CreateTopic(_pubsubFixture.ProjectId, topicId);

        _pubsubFixture.TempTopicIds.Add(topicId);
        var topic = _pubsubFixture.GetTopic(topicId);

        Assert.Equal(newlyCreatedTopic, topic);
    }