public DefaultCamundaWorkerTest()
        {
            var contextMock = new Mock <IExternalTaskContext>();

            _contextFactoryMock.Setup(factory => factory.MakeContext(It.IsAny <ExternalTask>()))
            .Returns(contextMock.Object);

            _worker = new DefaultCamundaWorker(
                _selectorMock.Object,
                _contextFactoryMock.Object,
                new PipelineDescriptor(_routerMock.Object.RouteAsync)
                );
        }
Ejemplo n.º 2
0
        public DefaultCamundaWorkerTest()
        {
            _topicsProviderMock.Setup(provider => provider.GetTopics())
            .Returns(Enumerable.Empty <FetchAndLockRequest.Topic>());

            var contextMock = new Mock <IExternalTaskContext>();

            _contextFactoryMock.Setup(factory => factory.MakeContext(It.IsAny <ExternalTask>()))
            .Returns(contextMock.Object);

            _worker = new DefaultCamundaWorker(
                _topicsProviderMock.Object,
                _selectorMock.Object,
                _contextFactoryMock.Object,
                new PipelineDescriptor(_routerMock.Object.RouteAsync)
                );
        }