static void MockUp(out HttpKeepAliveService service, out Mock <IWatchDog> mockWatchDog) { var httpSettings = HttpSettings.Default; httpSettings.MaxKeepAliveConnectionsGlobally = 10; mockWatchDog = new Mock <IWatchDog>(); mockWatchDog .Setup(inst => inst.Watch(It.IsAny <IDisposable>())) .Returns(Mock.Of <IWatchDogSession>()); service = new HttpKeepAliveService(mockWatchDog.Object, httpSettings); }
static void MockUp(out HttpKeepAliveService service) => MockUp(out service, out _);