public async void UpdateActivityAsync_Should_Throw_NotSupportedException() { var options = new TwilioAdapterOptions("Test", "Test", "Test", "Test"); var twilioAdapter = new TwilioAdapter(options, new Mock <TwilioClientWrapper>().Object); var activity = new Activity(); var turnContext = new TurnContext(twilioAdapter, activity); await Assert.ThrowsAsync <NotSupportedException>(async() => { await twilioAdapter.UpdateActivityAsync(turnContext, activity, default); }); }
public async void UpdateActivityAsyncShouldThrowNotSupportedException() { var twilioAdapter = new TwilioAdapter(new Mock <TwilioClientWrapper>(_testOptions).Object, _adapterOptions); var activity = new Activity(); using (var turnContext = new TurnContext(twilioAdapter, activity)) { await Assert.ThrowsAsync <NotSupportedException>(async() => { await twilioAdapter.UpdateActivityAsync(turnContext, activity, default); }); } }
public async void UpdateActivityAsync_Should_Throw_NotSupportedException() { var options = new Mock <ITwilioAdapterOptions>(); options.SetupAllProperties(); options.Object.AuthToken = "Test"; options.Object.TwilioNumber = "Test"; options.Object.AccountSid = "Test"; var twilioAdapter = new TwilioAdapter(options.Object, new Mock <ITwilioClient>().Object); var activity = new Activity(); var turnContext = new TurnContext(twilioAdapter, activity); await Assert.ThrowsAsync <NotSupportedException>(async() => { await twilioAdapter.UpdateActivityAsync(turnContext, activity, default); }); }