示例#1
0
        public Task <IValueProvider> BindAsync(BindingContext context)
        {
            var value = _serviceProviderHolder.GetRequiredService(context.FunctionInstanceId, _type);

            return(BindAsync(value, context.ValueContext));
        }
示例#2
0
        public void GetRequiredService_WithNullForServiceType_ThrowsException()
        {
            Action action = () => _serviceProviderHolder.GetRequiredService(null);

            action.Should().Throw <ArgumentNullException>().And.ParamName.Should().Be("serviceType");
        }