public async void DeleteActivityAsync_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); var conversationReference = new ConversationReference(); await Assert.ThrowsAsync <NotSupportedException>(async() => { await twilioAdapter.DeleteActivityAsync(turnContext, conversationReference, default); }); }
public async void DeleteActivityAsyncShouldThrowNotSupportedException() { var twilioAdapter = new TwilioAdapter(new Mock <TwilioClientWrapper>(_testOptions).Object, _adapterOptions); var activity = new Activity(); var conversationReference = new ConversationReference(); using (var turnContext = new TurnContext(twilioAdapter, activity)) { await Assert.ThrowsAsync <NotSupportedException>(async() => { await twilioAdapter.DeleteActivityAsync(turnContext, conversationReference, default); }); } }
public async void DeleteActivityAsync_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); var conversationReference = new ConversationReference(); await Assert.ThrowsAsync <NotSupportedException>(async() => { await twilioAdapter.DeleteActivityAsync(turnContext, conversationReference, default); }); }