public WebPubSubRequestBindingProviderTests()
        {
            _configuration = new ConfigurationBuilder()
                             .AddEnvironmentVariables()
                             .Build();
            Mock <INameResolver> mockResolver = new Mock <INameResolver>(MockBehavior.Strict);
            WebPubSubOptions     config       = new WebPubSubOptions();

            _provider = new WebPubSubRequestBindingProvider(config, mockResolver.Object, _configuration);
        }
Example #2
0
        public WebPubSubTriggerBindingProviderTests()
        {
            _configuration = new ConfigurationBuilder()
                             .AddEnvironmentVariables()
                             .AddInMemoryCollection()
                             .Build();
            _configuration["testhub"] = TestHub;
            var resolver     = new DefaultNameResolver(_configuration);
            var mockDispater = new Mock <IWebPubSubTriggerDispatcher>(MockBehavior.Strict);
            var config       = new WebPubSubOptions();

            _provider = new WebPubSubTriggerBindingProvider(mockDispater.Object, resolver, config, null);
        }