コード例 #1
0
        internal HttpMock(IStartedHttpMock[] startedHttpMocks, IHandlingMockQueue handlingMockQueue)
        {
            this.startedHttpMocks  = startedHttpMocks;
            this.handlingMockQueue = handlingMockQueue;

            internalHttpRequestMockBuilders = new List <IHttpRequestMockBuilder>();
        }
コード例 #2
0
        public IStartedHttpMock RunMocks(IMockUrlEnumerator mockUrlEnumerator, IHandlingMockQueue handlingMockQueue)
        {
            var httpListenerWrapper = httpListenerWrapperFactory.CreateAndStart(mockUrlEnumerator);
            var startedHttpMock     = startedHttpMockFactory.Create(httpListenerWrapper, handlingMockQueue);

            return(startedHttpMock);
        }
コード例 #3
0
        public StartedHttpMock(IHttpListenerWrapper httpListenerWrapper, IHandlingMockQueue handlingMockQueue)
        {
            this.httpListenerWrapper = httpListenerWrapper;
            this.handlingMockQueue   = handlingMockQueue;

            httpMockDebugLogger     = new ConsoleHttpMockDebugLogger();
            verificationMockResults = new List <VerificationResult>();
            stated             = true;
            listenHttpMockTask = StartAsync();
        }
コード例 #4
0
 public IStartedHttpMock Create(IHttpListenerWrapper httpListenerWrapper, IHandlingMockQueue handlingMockQueue)
 {
     return(new StartedHttpMock(httpListenerWrapper, handlingMockQueue));
 }