public QueueTriggerBindingIntegrationTests() { IQueueTriggerArgumentBindingProvider provider = new UserTypeArgumentBindingProvider(); ParameterInfo pi = new StubParameterInfo("parameterName", typeof(UserDataType)); var argumentBinding = provider.TryCreate(pi); var fakeAccount = new FakeStorage.FakeAccount(); CloudQueue queue = fakeAccount.CreateCloudQueueClient().GetQueueReference("queueName"); IWebJobsExceptionHandler exceptionHandler = new WebJobsExceptionHandler(new Mock <IHost>().Object); var enqueueWatcher = new Host.Queues.Listeners.SharedQueueWatcher(); _binding = new QueueTriggerBinding("parameterName", queue, argumentBinding, new QueuesOptions(), exceptionHandler, enqueueWatcher, null, null); }
public QueueTriggerBindingIntegrationTests(AzuriteFixture azuriteFixture) { IQueueTriggerArgumentBindingProvider provider = new UserTypeArgumentBindingProvider(); ParameterInfo pi = new StubParameterInfo("parameterName", typeof(UserDataType)); var argumentBinding = provider.TryCreate(pi); var fakeAccount = azuriteFixture.GetAccount(); QueueServiceClient queueServiceClient = fakeAccount.CreateQueueServiceClient(); QueueClient queue = queueServiceClient.GetQueueClient("queueName-queuetriggerbindingintegrationtests"); IWebJobsExceptionHandler exceptionHandler = new WebJobsExceptionHandler(new Mock <IHost>().Object); var enqueueWatcher = new Host.Queues.Listeners.SharedQueueWatcher(); _binding = new QueueTriggerBinding("parameterName", queueServiceClient, queue, argumentBinding, new QueuesOptions(), exceptionHandler, enqueueWatcher, null, null); }
public void SetUp() { _invariantCultureFixture = new InvariantCultureFixture(); IQueueTriggerArgumentBindingProvider provider = new UserTypeArgumentBindingProvider(); ParameterInfo pi = new StubParameterInfo("parameterName", typeof(UserDataType)); var argumentBinding = provider.TryCreate(pi); QueueServiceClient queueServiceClient = AzuriteNUnitFixture.Instance.GetQueueServiceClient(); QueueClient queue = queueServiceClient.GetQueueClient("queueName-queuetriggerbindingintegrationtests"); IWebJobsExceptionHandler exceptionHandler = new WebJobsExceptionHandler(new Mock <IHost>().Object); var enqueueWatcher = new Host.Queues.Listeners.SharedQueueWatcher(); _binding = new QueueTriggerBinding("parameterName", queueServiceClient, queue, argumentBinding, new QueuesOptions(), exceptionHandler, enqueueWatcher, null, null); }