internal HttpMock(IStartedHttpMock[] startedHttpMocks, IHandlingMockQueue handlingMockQueue) { this.startedHttpMocks = startedHttpMocks; this.handlingMockQueue = handlingMockQueue; internalHttpRequestMockBuilders = new List <IHttpRequestMockBuilder>(); }
public IStartedHttpMock RunMocks(IMockUrlEnumerator mockUrlEnumerator, IHandlingMockQueue handlingMockQueue) { var httpListenerWrapper = httpListenerWrapperFactory.CreateAndStart(mockUrlEnumerator); var startedHttpMock = startedHttpMockFactory.Create(httpListenerWrapper, handlingMockQueue); return(startedHttpMock); }
public StartedHttpMock(IHttpListenerWrapper httpListenerWrapper, IHandlingMockQueue handlingMockQueue) { this.httpListenerWrapper = httpListenerWrapper; this.handlingMockQueue = handlingMockQueue; httpMockDebugLogger = new ConsoleHttpMockDebugLogger(); verificationMockResults = new List <VerificationResult>(); stated = true; listenHttpMockTask = StartAsync(); }
public IStartedHttpMock Create(IHttpListenerWrapper httpListenerWrapper, IHandlingMockQueue handlingMockQueue) { return(new StartedHttpMock(httpListenerWrapper, handlingMockQueue)); }