public void ApplyDispatchBehavior([Frozen] IServiceProvider serviceProvider, DependencyInjectionServiceBehavior sut, ServiceHost host, ILogger <DependencyInjectionInstanceProvider> providerLogger, string endpoint) { Mock.Get(serviceProvider).Setup(p => p.GetService(typeof(ILogger <DependencyInjectionInstanceProvider>))).Returns(providerLogger); host.AddServiceEndpoint(typeof(ITestService), new NetNamedPipeBinding(), new Uri($"net.pipe://localhost/{endpoint}")); sut.ApplyDispatchBehavior(host.Description, host); }
public void AddBindingParameters_does_not_throw(DependencyInjectionServiceBehavior sut) { Assert.DoesNotThrow(() => sut.AddBindingParameters(null, null, null, null)); }
public void Validate_does_not_throw(ServiceDescription description, ServiceHost host, DependencyInjectionServiceBehavior sut) { Assert.DoesNotThrow(() => sut.Validate(description, host)); }