public CallControlAnswerServiceTest(MockHttpClientFixture mockHttpClientFixture) : base(mockHttpClientFixture) { this.service = new CallControlAnswerService(); this.createOptions = new CallControlAnswerOptions() { ClientState = "aGF2ZSBhIG5pY2UgZGF5ID1d", CommandId = new Guid("891510ac-f3e4-11e8-af5b-de00688a4901") }; }
public virtual async Task <CallAnswerResponse> AnswerAsync(CallControlAnswerOptions options, string postFix = "actions/answer", RequestOptions requestOptions = null, CancellationToken ct = default) { return(await this.callControlAnswerService.CreateAsync(this.CallControlId, options, postFix, requestOptions, ct)); }
public virtual CallAnswerResponse Answer(CallControlAnswerOptions options, string postFix = "actions/answer", RequestOptions requestOptions = null) { return(this.callControlAnswerService.Create(this.CallControlId, options, postFix, requestOptions)); }