public GoogleCloudPubSubSinkTests(GoogleCloudPubsubFixture fixture) { this._fixture = fixture; //--- this._projectId = this._fixture.ProjectId; this._topicId = this._fixture.CreateTopicId(); this._subscriptionId = this._fixture.CreateSubscriptionId(this._topicId); this._subscriptionIdFull = this._fixture.GetProjectSubsFull(this._subscriptionId); //--- // It is necessary to specify a correct Deadline time (in UTC). If not then it is thrown // the following error: Status(StatusCode=DeadlineExceeded, Detail="Deadline Exceeded") ServiceEndpoint sep = null; SubscriberSettings settings = new SubscriberSettings(); settings.PullSettings = new CallSettings(); settings.PullSettings.Timing = CallTiming.FromDeadline(DateTime.UtcNow.AddMinutes(5)); // 5 minutes deadline time. // Client to access PubSub for subscriptions. this._subscriberClient = SubscriberClient.Create(sep, settings); }
public BasicTests(ITestOutputHelper output, GoogleCloudPubsubFixture fixture) { this._output = output; this._fixture = fixture; }